Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Update script(improved several things)
Browse files Browse the repository at this point in the history
  • Loading branch information
powenn committed Feb 6, 2022
1 parent bd7e9e3 commit 43b6aa2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
4 changes: 3 additions & 1 deletion AltServer-aarch64/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ OPTIONS
Show this message
u, --Update
Update this script or AltServer
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
EOF

# Print AltServer icon
Expand Down
4 changes: 3 additions & 1 deletion AltServer-armv7/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ OPTIONS
Show this message
u, --Update
Update this script or AltServer
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
EOF

# Print AltServer icon
Expand Down
4 changes: 3 additions & 1 deletion AltServer-x64/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ OPTIONS
Show this message
u, --Update
Update this script or AltServer
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
EOF

# Print AltServer icon
Expand Down
12 changes: 3 additions & 9 deletions main
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ HasExistAccount=$(cat saved.txt)
HasExistipa=$(ls ipa)
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')

cd "$(dirname "$0")"
# Check if there exists saved account
# Ask if want to use saved account
AskAccount() {
Expand All @@ -19,8 +18,8 @@ AskAccount() {
nl saved.txt
echo "please enter the number "
read number
ExistID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
ExistPasswd=$(sed -n "$number"p saved.txt | cut -d , -f 2)
AppleID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
password=$(sed -n "$number"p saved.txt | cut -d , -f 2)
;;
[nN][oO]|[nN] )
UseExistAccount=0
Expand All @@ -41,12 +40,7 @@ AskAccount() {
# Execute AltServer
# Check if this account existed before
AltServer() {
if [[ $UseExistAccount = 1 ]]; then
./AltServer -u ${UDID} -a $ExistID -p $ExistPasswd $PATH
fi
if [[ $UseExistAccount = 0 ]]; then
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
fi
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
if [[ "$CheckAccount" == "" ]] ; then
AccountSaving=1
fi
Expand Down
4 changes: 3 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ OPTIONS
Show this message
u, --Update
Update this script or AltServer
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
EOF

# Print AltServer icon
Expand Down
1 change: 0 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
# Author of the script : powen

cd "$(dirname "$0")"
LocalVersion=$(sed -n 1p version)
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
Arch=$(sed -n 2p version)
Expand Down

0 comments on commit 43b6aa2

Please sign in to comment.