From cba127afa75bbac8d833e0051fa9a56b714bbdef Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 8 Apr 2015 11:49:46 +0200 Subject: [PATCH 1/1] Break on errors (exit code 1) --- appify.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appify.sh b/appify.sh index 11c6827..d0bb922 100755 --- a/appify.sh +++ b/appify.sh @@ -61,10 +61,10 @@ fi # done checking args; create the app # -mkdir -p "$TARGET/Contents/MacOS" -mkdir -p "$TARGET/Contents/Resources" umask 0022 +mkdir -p "$TARGET/Contents/MacOS" || exit 1 +mkdir -p "$TARGET/Contents/Resources" || exit 1 cat <"$TARGET/Contents/Info.plist" @@ -87,5 +87,5 @@ cat <"$TARGET/Contents/Info.plist" EOF -cp "$SCRIPT" "$TARGET/Contents/MacOS/$BASENAME" -chmod 755 "$TARGET/Contents/MacOS/$BASENAME" +cp "$SCRIPT" "$TARGET/Contents/MacOS/$BASENAME" || exit 1 +chmod 755 "$TARGET/Contents/MacOS/$BASENAME" || exit 1 -- 2.39.2