core: exit makedist.sh script if command "cd" failed

v2.8-utf8proc
Sébastien Helleu 2019-11-28 21:28:07 +01:00
parent d876ec49fc
commit c947d1575f
1 changed files with 2 additions and 2 deletions

View File

@ -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"