diff options
| author | TitanSnow <[email protected]> | 2017-05-08 07:57:49 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-08 07:57:49 +0800 |
| commit | a9c53788529c23906bf388942dbc2eceb1df86a5 (patch) | |
| tree | 8d90be3758a9407199a878df1789cba506955aef /scripts | |
| parent | c89daffdb800aab6d8c7b46a9bac2d8657cde9eb (diff) | |
add chdir error
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 2 |
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' |
