summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh
index 3470980ac..43cd731f0 100755
--- a/scripts/get.sh
+++ b/scripts/get.sh
@@ -68,7 +68,7 @@ then
then
cd /tmp/$$xmake_getter || my_exit 'Chdir Error'
git checkout -qf "$2"
- cd -
+ cd - || my_exit 'Chdir Error'
fi
else
cp -r "$(git rev-parse --show-toplevel 2>/dev/null || hg root 2>/dev/null || echo "$PWD")" /tmp/$$xmake_getter || my_exit 'Clone Fail'