File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 28
28
if ! [ -f " ./$ORIGINAL_IPA_NAME " ]; then
29
29
echo " The original.ipa file doesn't exist. This script can automatically download it from archive.org."
30
30
echo " Note: this file contains copyrighted materials that will be injected into the resulting app."
31
- echo " \033[0;31m$( tput bold) You CANNOT distribute the resulting $IPA_NAME file in any way. For personal use only.$( tput sgr0) \033[0m"
31
+ printf " \033[0;31m$( tput bold) You CANNOT distribute the resulting $IPA_NAME file in any way. For personal use only.$( tput sgr0) \033[0m\n "
32
32
while [ " $choice " != " n" ] && [ " $choice " != " y" ]; do
33
33
printf " Do you want to continue? [y/n]: "
34
34
read choice
@@ -44,6 +44,7 @@ if ! [ -f "./$ORIGINAL_IPA_NAME" ]; then
44
44
fi
45
45
fi
46
46
47
+ # Check file's checksum
47
48
if [ " ` openssl dgst -sha256 " ./$ORIGINAL_IPA_NAME " | sed -E ' s/SHA(2-)?256(.*)= //' ` " != " $ORIGINAL_IPA_SHA256 " ]; then
48
49
echo " $ORIGINAL_IPA_NAME has an unexpected checksum. Try downloading it again."
49
50
exit 1
@@ -95,4 +96,4 @@ echo "Injecting files into iloveusomuch.ipa..."
95
96
zip -ru " $IPA_NAME " Payload > /dev/null
96
97
rm -R ./Payload
97
98
98
- echo " \nIPA is ready!"
99
+ printf " \nIPA is ready!\n "
You can’t perform that action at this time.
0 commit comments