This repository was archived by the owner on Sep 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +37
-32
lines changed
Expand file tree Collapse file tree 8 files changed +37
-32
lines changed Original file line number Diff line number Diff line change 1616if [[ ! -e " saved.txt" ]]; then
1717 touch saved.txt
1818fi
19- if [[ " stat main | grep -rw-r--r--" != " " ]] ; then
19+ if [[ " stat main | grep -- '- rw-r--r--' " != " " ]] ; then
2020 chmod +x main
2121fi
22- if [[ " stat AltServer | grep -rw-r--r--" != " " ]] ; then
22+ if [[ " stat AltServer | grep -- '- rw-r--r--' " != " " ]] ; then
2323 chmod +x AltServer
2424fi
2525
@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828LatestVersion=$( 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
5354For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556EOF
57+ }
5658
5759# Print AltServer icon
5860AltServerIcon () {
8688
8789# Start script
8890AltServerIcon
89- cat help.txt
91+ HELP
9092UpdateNotification
9193echo " Please connect to your device and press Enter to continue"
9294read 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 )
Original file line number Diff line number Diff line change 1- 0.2.5
1+ 0.2.6
22aarch64
Original file line number Diff line number Diff line change 1616if [[ ! -e " saved.txt" ]]; then
1717 touch saved.txt
1818fi
19- if [[ " stat main | grep -rw-r--r--" != " " ]] ; then
19+ if [[ " stat main | grep -- '- rw-r--r--' " != " " ]] ; then
2020 chmod +x main
2121fi
22- if [[ " stat AltServer | grep -rw-r--r--" != " " ]] ; then
22+ if [[ " stat AltServer | grep -- '- rw-r--r--' " != " " ]] ; then
2323 chmod +x AltServer
2424fi
2525
@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828LatestVersion=$( 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
5354For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556EOF
57+ }
5658
5759# Print AltServer icon
5860AltServerIcon () {
8688
8789# Start script
8890AltServerIcon
89- cat help.txt
91+ HELP
9092UpdateNotification
9193echo " Please connect to your device and press Enter to continue"
9294read 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 )
Original file line number Diff line number Diff line change 1- 0.2.5
1+ 0.2.6
22armv7
Original file line number Diff line number Diff line change 1616if [[ ! -e " saved.txt" ]]; then
1717 touch saved.txt
1818fi
19- if [[ " stat main | grep -rw-r--r--" != " " ]] ; then
19+ if [[ " stat main | grep -- '- rw-r--r--' " != " " ]] ; then
2020 chmod +x main
2121fi
22- if [[ " stat AltServer | grep -rw-r--r--" != " " ]] ; then
22+ if [[ " stat AltServer | grep -- '- rw-r--r--' " != " " ]] ; then
2323 chmod +x AltServer
2424fi
25- if [[ " stat AltServerDaemon | grep -rw-r--r--" != " " ]] ; then
25+ if [[ " stat AltServerDaemon | grep -- '- rw-r--r--' " != " " ]] ; then
2626 chmod +x AltServerDaemon
2727fi
2828
@@ -31,8 +31,9 @@ LocalVersion=$(sed -n 1p version)
3131LatestVersion=$( 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
5657For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5758
5859EOF
60+ }
5961
6062# Print AltServer icon
6163AltServerIcon () {
8991
9092# Start script
9193AltServerIcon
92- cat help.txt
94+ HELP
9395UpdateNotification
9496echo " Please connect to your device and press Enter to continue"
9597read 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 )
Original file line number Diff line number Diff line change 1- 0.2.5
1+ 0.2.6
22x64
Original file line number Diff line number Diff line change 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
134133fi
135134
136-
137- echo " << Done >>"
138- echo " Back to AltServer script"
135+ echo " << Back to AltServer script >>"
139136
Original file line number Diff line number Diff line change 1616if [[ ! -e " saved.txt" ]]; then
1717 touch saved.txt
1818fi
19- if [[ " stat main | grep -rw-r--r--" != " " ]] ; then
19+ if [[ " stat main | grep -- '- rw-r--r--' " != " " ]] ; then
2020 chmod +x main
2121fi
22- if [[ " stat AltServer | grep -rw-r--r--" != " " ]] ; then
22+ if [[ " stat AltServer | grep -- '- rw-r--r--' " != " " ]] ; then
2323 chmod +x AltServer
2424fi
2525
@@ -28,8 +28,9 @@ LocalVersion=$(sed -n 1p version)
2828LatestVersion=$( 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
5354For more information: https://github.com/powenn/AltServer-Linux-ShellScript
5455
5556EOF
57+ }
5658
5759# Print AltServer icon
5860AltServerIcon () {
8688
8789# Start script
8890AltServerIcon
89- cat help.txt
91+ HELP
9092UpdateNotification
9193echo " Please connect to your device and press Enter to continue"
9294read 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 )
You can’t perform that action at this time.
0 commit comments