Update fakesigner.sh

Added a check for parameters
This commit is contained in:
Bastian
2020-02-23 12:15:04 +01:00
committed by GitHub
parent 9aee7bd3e8
commit 4967f90890
+6 -1
View File
@@ -4,7 +4,7 @@ if [[ $EUID -eq 0 ]]; then
echo "[!] Please don't run this script as root!"
exit
fi
if [[ $(command -v brew) == "" ]]; then
if [[ $(command -v sudo -u brew) == "" ]]; then
echo "[!] Hombrew not installed!"
echo "[!] Please run the following command!"
echo '[!] /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'
@@ -19,6 +19,11 @@ else
echo "[!] brew install ldid"
fi
fi
if [ -z "$1" ]
then
echo "[!] No .ipa file supplied!"
exit
fi
ipa=$1
echo [*] unpacking..