1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

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

This commit is contained in:
Sébastien Helleu
2019-11-28 21:28:07 +01:00
parent d876ec49fc
commit c947d1575f
+2 -2
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"