diff options
| author | TitanSnow <[email protected]> | 2017-04-22 14:01:26 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-22 14:10:07 +0800 |
| commit | 4506a57c46ece41caf443b96674cf7b11490b4f6 (patch) | |
| tree | a08d0a1d08b430968d404d0f487efa83b2a1011c | |
| parent | 3099f0be14d83720fbb5027cbf5297701208b547 (diff) | |
add wrapper
| -rw-r--r-- | scripts/get.ps1 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 7e1bbee9f..c6de72b14 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -2,6 +2,8 @@ # usage: (in powershell) # Invoke-Expression (Invoke-Webrequest <my location> -UseBasicParsing).Content +& { + $temppath=($env:TMP,$env:TEMP,'.' -ne $null)[0] $outfile=$temppath+"\$pid-xmake-installer.exe" try{ @@ -75,3 +77,5 @@ try{ Remove-Item "$outfile" -ErrorAction SilentlyContinue Remove-Item "$repodir" -Recurse -Force -ErrorAction SilentlyContinue } + +} |
