diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-28 21:28:07 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-11-28 21:28:07 +0100 |
commit | c947d1575fd0affd3a923fe6cb81ae1ceaa289eb (patch) | |
tree | 7ec986e8dd843b2c1341dda10f562f7b31e5d7e5 | |
parent | d876ec49fcea74dc430aca90c41ed1e5f32b6dde (diff) | |
download | weechat-c947d1575fd0affd3a923fe6cb81ae1ceaa289eb.zip |
core: exit makedist.sh script if command "cd" failed
-rwxr-xr-x | tools/makedist.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/makedist.sh b/tools/makedist.sh index 2bedd755d..eb7a2d25c 100755 --- a/tools/makedist.sh +++ b/tools/makedist.sh @@ -52,10 +52,10 @@ if [ $# -ge 2 ]; then TREEISH=$2 fi if [ $# -ge 3 ]; then - OUTPATH=$(cd "$3"; pwd) + OUTPATH=$(cd "$3" || exit 1; pwd) fi -cd "${ROOT_DIR}" +cd "${ROOT_DIR}" || exit 1 PREFIX="weechat-${VERSION}/" FILE="${OUTPATH}/weechat-${VERSION}.tar" |