Skip to content

Commit 96156b6

Browse files
inject.sh: Show warning message every time
1 parent e1cc78f commit 96156b6

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

inject.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ else
2424
OUT_DIR="./Payload/iloveusomuch.app"
2525
fi
2626

27-
# Suggest downloading the original ipa file if it doesn't exit
27+
echo "This script injects assets from the original app into an .ipa file or the Xcode project itself."
28+
echo "The original app files are going to be downladed. Those files contain copyrighted materials."
29+
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"
30+
while [ "$choice" != "n" ] && [ "$choice" != "y" ]; do
31+
printf "Do you want to continue? [y/n]: "
32+
read choice
33+
done
34+
if [ "$choice" == "n" ]; then
35+
exit 0
36+
fi
37+
38+
# Download the original ipa file if it doesn't exit
2839
if ! [ -f "./$ORIGINAL_IPA_NAME" ]; then
29-
echo "The original.ipa file doesn't exist. This script can automatically download it from archive.org."
30-
echo "Note: this file contains copyrighted materials that will be injected into the resulting app."
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-
while [ "$choice" != "n" ] && [ "$choice" != "y" ]; do
33-
printf "Do you want to continue? [y/n]: "
34-
read choice
35-
done
36-
if [ "$choice" == "n" ]; then
37-
exit 0
38-
fi
3940
echo "Downloading the original app..."
4041
curl -SLo "./$ORIGINAL_IPA_NAME" "$ORIGINAL_IPA_URL"
4142
if ! [ $? = 0 ]; then

0 commit comments

Comments
 (0)