Skip to content

Commit 2b0c9b8

Browse files
inject.sh: Add check zip exit status
1 parent 96156b6 commit 2b0c9b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inject.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ fi
9595
# Inject files into a compiled .ipa
9696
echo "Injecting files into iloveusomuch.ipa..."
9797
zip -ru "$IPA_NAME" Payload > /dev/null
98+
if ! [ $? = 0 ]; then
99+
echo "Failed to inject files into .ipa"
100+
rm -R ./Payload
101+
exit 1
102+
fi;
98103
rm -R ./Payload
99104

100105
printf "\nIPA is ready!\n"

0 commit comments

Comments
 (0)