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

Commit d950925

Browse files
committed
preparing next update
1 parent bdad907 commit d950925

File tree

8 files changed

+37
-32
lines changed

8 files changed

+37
-32
lines changed

AltServer-aarch64/run.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ fi
1616
if [[ ! -e "saved.txt" ]]; then
1717
touch saved.txt
1818
fi
19-
if [[ "stat main | grep -rw-r--r--" != "" ]] ; then
19+
if [[ "stat main | grep -- '-rw-r--r--'" != "" ]] ; then
2020
chmod +x main
2121
fi
22-
if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
22+
if [[ "stat AltServer | grep -- '-rw-r--r--'" != "" ]] ; then
2323
chmod +x AltServer
2424
fi
2525

@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
2929

3030

31-
# Instruction
32-
cat << EOF >help.txt
31+
# Help message
32+
HELP() {
33+
cat << EOF
3334
3435
#####################################
3536
# Welcome to the AltServer script #
@@ -53,6 +54,7 @@ OPTIONS
5354
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556
EOF
57+
}
5658

5759
# Print AltServer icon
5860
AltServerIcon() {
@@ -86,7 +88,7 @@ fi
8688

8789
# Start script
8890
AltServerIcon
89-
cat help.txt
91+
HELP
9092
UpdateNotification
9193
echo "Please connect to your device and press Enter to continue"
9294
read key
@@ -119,7 +121,7 @@ while [ $RunScript = 0 ] ; do
119121
;;
120122
h|--Help )
121123
AltServerIcon
122-
cat help.txt
124+
HELP
123125
UpdateNotification
124126
;;
125127
u|--Update )

AltServer-aarch64/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.2.5
1+
0.2.6
22
aarch64

AltServer-armv7/run.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ fi
1616
if [[ ! -e "saved.txt" ]]; then
1717
touch saved.txt
1818
fi
19-
if [[ "stat main | grep -rw-r--r--" != "" ]] ; then
19+
if [[ "stat main | grep -- '-rw-r--r--'" != "" ]] ; then
2020
chmod +x main
2121
fi
22-
if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
22+
if [[ "stat AltServer | grep -- '-rw-r--r--'" != "" ]] ; then
2323
chmod +x AltServer
2424
fi
2525

@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
2929

3030

31-
# Instruction
32-
cat << EOF >help.txt
31+
# Help message
32+
HELP() {
33+
cat << EOF
3334
3435
#####################################
3536
# Welcome to the AltServer script #
@@ -53,6 +54,7 @@ OPTIONS
5354
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556
EOF
57+
}
5658

5759
# Print AltServer icon
5860
AltServerIcon() {
@@ -86,7 +88,7 @@ fi
8688

8789
# Start script
8890
AltServerIcon
89-
cat help.txt
91+
HELP
9092
UpdateNotification
9193
echo "Please connect to your device and press Enter to continue"
9294
read key
@@ -119,7 +121,7 @@ while [ $RunScript = 0 ] ; do
119121
;;
120122
h|--Help )
121123
AltServerIcon
122-
cat help.txt
124+
HELP
123125
UpdateNotification
124126
;;
125127
u|--Update )

AltServer-armv7/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.2.5
1+
0.2.6
22
armv7

AltServer-x64/run.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ fi
1616
if [[ ! -e "saved.txt" ]]; then
1717
touch saved.txt
1818
fi
19-
if [[ "stat main | grep -rw-r--r--" != "" ]] ; then
19+
if [[ "stat main | grep -- '-rw-r--r--'" != "" ]] ; then
2020
chmod +x main
2121
fi
22-
if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
22+
if [[ "stat AltServer | grep -- '-rw-r--r--'" != "" ]] ; then
2323
chmod +x AltServer
2424
fi
25-
if [[ "stat AltServerDaemon | grep -rw-r--r--" != "" ]] ; then
25+
if [[ "stat AltServerDaemon | grep -- '-rw-r--r--'" != "" ]] ; then
2626
chmod +x AltServerDaemon
2727
fi
2828

@@ -31,8 +31,9 @@ LocalVersion=$(sed -n 1p version)
3131
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
3232

3333

34-
# Instruction
35-
cat << EOF >help.txt
34+
# Help message
35+
HELP() {
36+
cat << EOF
3637
3738
#####################################
3839
# Welcome to the AltServer script #
@@ -56,6 +57,7 @@ OPTIONS
5657
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5758
5859
EOF
60+
}
5961

6062
# Print AltServer icon
6163
AltServerIcon() {
@@ -89,7 +91,7 @@ fi
8991

9092
# Start script
9193
AltServerIcon
92-
cat help.txt
94+
HELP
9395
UpdateNotification
9496
echo "Please connect to your device and press Enter to continue"
9597
read key
@@ -122,7 +124,7 @@ while [ $RunScript = 0 ] ; do
122124
;;
123125
h|--Help )
124126
AltServerIcon
125-
cat help.txt
127+
HELP
126128
UpdateNotification
127129
;;
128130
u|--Update )

AltServer-x64/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.2.5
1+
0.2.6
22
x64

main

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ EOF
102102
mainScript=1
103103
RunScriptMain=1
104104
;;
105-
106105
2|--Install-ipa-files )
107106
mainScript=2
108107
RunScriptMain=1
@@ -133,7 +132,5 @@ if [[ $AccountSaving = 1 ]] ; then
133132
SaveAcccount
134133
fi
135134

136-
137-
echo "<< Done >>"
138-
echo "Back to AltServer script"
135+
echo "<< Back to AltServer script >>"
139136

run.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ fi
1616
if [[ ! -e "saved.txt" ]]; then
1717
touch saved.txt
1818
fi
19-
if [[ "stat main | grep -rw-r--r--" != "" ]] ; then
19+
if [[ "stat main | grep -- '-rw-r--r--'" != "" ]] ; then
2020
chmod +x main
2121
fi
22-
if [[ "stat AltServer | grep -rw-r--r--" != "" ]] ; then
22+
if [[ "stat AltServer | grep -- '-rw-r--r--'" != "" ]] ; then
2323
chmod +x AltServer
2424
fi
2525

@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828
LatestVersion=$(curl -Lsk 'https://github.com/powenn/AltServer-Linux-ShellScript/raw/main/version')
2929

3030

31-
# Instruction
32-
cat << EOF >help.txt
31+
# Help message
32+
HELP() {
33+
cat << EOF
3334
3435
#####################################
3536
# Welcome to the AltServer script #
@@ -53,6 +54,7 @@ OPTIONS
5354
For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556
EOF
57+
}
5658

5759
# Print AltServer icon
5860
AltServerIcon() {
@@ -86,7 +88,7 @@ fi
8688

8789
# Start script
8890
AltServerIcon
89-
cat help.txt
91+
HELP
9092
UpdateNotification
9193
echo "Please connect to your device and press Enter to continue"
9294
read key
@@ -119,7 +121,7 @@ while [ $RunScript = 0 ] ; do
119121
;;
120122
h|--Help )
121123
AltServerIcon
122-
cat help.txt
124+
HELP
123125
UpdateNotification
124126
;;
125127
u|--Update )

0 commit comments

Comments
 (0)