File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ getAbout() {
23
23
echo " "
24
24
echo " Intro: https://www.oldking.net/697.html"
25
25
echo " Copyright (C) 2018 Oldking oooldking@gmail.com"
26
- echo -e " Version: ${GREEN} 1.0.2 ${PLAIN} (2 Nov 2018)"
26
+ echo -e " Version: ${GREEN} 1.0.3 ${PLAIN} (2 Nov 2018)"
27
27
echo " Usage: wget -qO- git.io/superupdate.sh | bash"
28
28
echo " "
29
29
}
@@ -176,7 +176,7 @@ setSources(){
176
176
updateInit
177
177
case " $release " in
178
178
debian)
179
- case $1 in
179
+ case $para in
180
180
' fastly' |' -fastly' |' --fastly' )
181
181
setDebian;;
182
182
' cn' |' -cn' |' --cn' )
@@ -194,15 +194,15 @@ setSources(){
194
194
esac
195
195
apt-get update;;
196
196
ubuntu)
197
- case $1 in
197
+ case $para in
198
198
' restore' |' -restore' |' --restore' )
199
199
restore;;
200
200
* )
201
201
setUbuntu;
202
202
esac
203
203
apt-get update;;
204
204
centos)
205
- case $1 in
205
+ case $para in
206
206
' restore' |' -restore' |' --restore' )
207
207
restore;;
208
208
* )
@@ -212,5 +212,6 @@ setSources(){
212
212
esac
213
213
}
214
214
215
+ para=$1
215
216
setSources
216
217
echo -e " ${GREEN} Done${PLAIN} "
You can’t perform that action at this time.
0 commit comments