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:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user