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

Commit 43b6aa2

Browse files
committed
Update script(improved several things)
1 parent bd7e9e3 commit 43b6aa2

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

AltServer-aarch64/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ OPTIONS
4949
Show this message
5050
u, --Update
5151
Update this script or AltServer
52-
52+
53+
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
54+
5355
EOF
5456

5557
# Print AltServer icon

AltServer-armv7/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ OPTIONS
4949
Show this message
5050
u, --Update
5151
Update this script or AltServer
52-
52+
53+
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
54+
5355
EOF
5456

5557
# Print AltServer icon

AltServer-x64/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ OPTIONS
5252
Show this message
5353
u, --Update
5454
Update this script or AltServer
55-
55+
56+
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
57+
5658
EOF
5759

5860
# Print AltServer icon

main

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ HasExistAccount=$(cat saved.txt)
55
HasExistipa=$(ls ipa)
66
UDID=$(lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 | grep iSerial | awk '{print $3}')
77

8-
cd "$(dirname "$0")"
98
# Check if there exists saved account
109
# Ask if want to use saved account
1110
AskAccount() {
@@ -19,8 +18,8 @@ AskAccount() {
1918
nl saved.txt
2019
echo "please enter the number "
2120
read number
22-
ExistID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
23-
ExistPasswd=$(sed -n "$number"p saved.txt | cut -d , -f 2)
21+
AppleID=$(sed -n "$number"p saved.txt | cut -d , -f 1)
22+
password=$(sed -n "$number"p saved.txt | cut -d , -f 2)
2423
;;
2524
[nN][oO]|[nN] )
2625
UseExistAccount=0
@@ -41,12 +40,7 @@ AskAccount() {
4140
# Execute AltServer
4241
# Check if this account existed before
4342
AltServer() {
44-
if [[ $UseExistAccount = 1 ]]; then
45-
./AltServer -u ${UDID} -a $ExistID -p $ExistPasswd $PATH
46-
fi
47-
if [[ $UseExistAccount = 0 ]]; then
48-
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
49-
fi
43+
./AltServer -u ${UDID} -a $AppleID -p $password $PATH
5044
if [[ "$CheckAccount" == "" ]] ; then
5145
AccountSaving=1
5246
fi

run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ OPTIONS
4949
Show this message
5050
u, --Update
5151
Update this script or AltServer
52-
52+
53+
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
54+
5355
EOF
5456

5557
# Print AltServer icon

update.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
# Author of the script : powen
33

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

0 commit comments

Comments
 (0)