From 7b14166454a152c5b2e0bd2f346744ae782a5556 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Fri, 26 May 2017 20:51:55 +0800 Subject: fix Move-Item --- scripts/getpb.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/getpb.ps1 b/scripts/getpb.ps1 index 77bcb318d..16042bb85 100644 --- a/scripts/getpb.ps1 +++ b/scripts/getpb.ps1 @@ -73,7 +73,7 @@ try{ if($branch -eq $null){ $branch='master' } Invoke-Webrequest "https://github.com/tboox/xmake/archive/$branch.zip" -OutFile "$installdir\temp.zip" Expand-Archive "$installdir\temp.zip" "$installdir\temp" -Force - Move-Item "$installdir\temp\xmake-$branch\xmake\*" $installdir -Recurse + Move-Item "$installdir\temp\xmake-$branch\xmake\*" $installdir Remove-Item "$installdir\temp","$installdir\temp.zip" -Recurse -Force $env:Path+=";$installdir" [Environment]::SetEnvironmentVariable("Path",[Environment]::GetEnvironmentVariable("Path",[System.EnvironmentVariableTarget]::User)+";$installdir",[System.EnvironmentVariableTarget]::User) # this step is optional because installer writes path to regedit -- cgit v1.3.1