diff --git a/Telegram/Build.sh b/Telegram/Build.sh index 9e31e8f313..808004fd21 100755 --- a/Telegram/Build.sh +++ b/Telegram/Build.sh @@ -1,3 +1,5 @@ +set -e + while IFS='' read -r line || [[ -n "$line" ]]; do set $line eval $1="$2" @@ -106,8 +108,8 @@ fi if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "mac32" ] || [ "$BuildTarget" == "macstore" ]; then - touch ./SourceFiles/telegram.qrc or exit 1 - xcodebuild -project Telegram.xcodeproj -alltargets -configuration Release build or exit 1 + touch ./SourceFiles/telegram.qrc + xcodebuild -project Telegram.xcodeproj -alltargets -configuration Release build if [ ! -d "$ReleasePath/$BinaryName.app" ]; then echo "$BinaryName.app not found!"