This repository was archived by the owner on Sep 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 22ReleaseFile
33.DS_Store
44Self
5- AltServer- *
5+ AltServer- *
6+ AltServerData
7+ saved.txt
Original file line number Diff line number Diff line change 33
44HasExistAccount=$( cat saved.txt)
55HasExistipa=$( ls ipa)
6- UDID=$( lsusb -v 2> /dev/null | grep -e " Apple Inc" -A 2 | grep iSerial | awk ' {print $3}' )
6+ _udid=$( lsusb -v 2> /dev/null | grep -e " Apple Inc" -A 2 | grep iSerial | awk ' {print $3}' )
7+ _udid_length=${# _udid}
8+ if [ $_udid_length == " 24" ]; then
9+ UDID=${_udid: 0: 8} " -" ${_udid: 8}
10+ fi
11+ if [ $_udid_length == " 40" ]; then
12+ UDID=$_udid
13+ fi
714
815# Check if there exists saved account
916# Ask if want to use saved account
@@ -40,7 +47,7 @@ AskAccount() {
4047# Execute AltServer
4148# Check if this account existed before
4249AltServer () {
43- ./AltServer -u ${UDID} -a $AppleID -p $password $PATH
50+ ./AltServer -u ${UDID} -a $AppleID -p $password $IPA_PATH
4451 if [[ " $CheckAccount " == " " ]] ; then
4552 AccountSaving=1
4653 fi
@@ -115,7 +122,7 @@ if [[ $mainScript = 1 ]] ; then
115122 AskAccount
116123 Account=$AppleID ,$password
117124 CheckAccount=$( grep $Account saved.txt)
118- PATH =./AltStore.ipa
125+ IPA_PATH =./AltStore.ipa
119126 AltServer
120127fi
121128if [[ $mainScript = 2 ]] ; then
@@ -124,7 +131,7 @@ if [[ $mainScript = 2 ]] ; then
124131 AskAccount
125132 Account=$AppleID ,$password
126133 CheckAccount=$( grep $Account saved.txt)
127- PATH =./ipa/$Existipa
134+ IPA_PATH =./ipa/$Existipa
128135 AltServer
129136 fi
130137fi
You can’t perform that action at this time.
0 commit comments