diff options
-rwxr-xr-x | cli/unzip-gbk.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/unzip-gbk.sh b/cli/unzip-gbk.sh index 53c7b57..37d152c 100755 --- a/cli/unzip-gbk.sh +++ b/cli/unzip-gbk.sh @@ -43,13 +43,13 @@ esac zipfile=$(realpath "$1") curdir=$(pwd) tmpdir=$(mktemp -d) -cd "${tmpdir}" +cd "${tmpdir}" || exit $? echo "Extracting archive '${zipfile}' ..." extract "${zipfile}" echo "Fixing filenames ..." fixnames -cd "${curdir}" +cd "${curdir}" || exit $? mv "${tmpdir}"/* . rmdir "${tmpdir}" |