summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-26 20:51:55 +0800
committerTitanSnow <[email protected]>2017-05-26 20:51:55 +0800
commit7b14166454a152c5b2e0bd2f346744ae782a5556 (patch)
tree703a8680f0a5f635914014b2fc5498aa7ae9399c /scripts
parentc66fed229a272a1459570ee8444ef8515e352c74 (diff)
fix Move-Item
Diffstat (limited to 'scripts')
-rw-r--r--scripts/getpb.ps12
1 files changed, 1 insertions, 1 deletions
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