Skip to content

Commit d33282f

Browse files
committed
fix bug
1 parent d2fad6b commit d33282f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

superupdate.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ getAbout() {
2323
echo ""
2424
echo " Intro: https://www.oldking.net/697.html"
2525
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)"
2727
echo " Usage: wget -qO- git.io/superupdate.sh | bash"
2828
echo ""
2929
}
@@ -176,7 +176,7 @@ setSources(){
176176
updateInit
177177
case "$release" in
178178
debian)
179-
case $1 in
179+
case $para in
180180
'fastly'|'-fastly'|'--fastly' )
181181
setDebian;;
182182
'cn'|'-cn'|'--cn' )
@@ -194,15 +194,15 @@ setSources(){
194194
esac
195195
apt-get update;;
196196
ubuntu)
197-
case $1 in
197+
case $para in
198198
'restore'|'-restore'|'--restore' )
199199
restore;;
200200
*)
201201
setUbuntu;
202202
esac
203203
apt-get update;;
204204
centos)
205-
case $1 in
205+
case $para in
206206
'restore'|'-restore'|'--restore' )
207207
restore;;
208208
*)
@@ -212,5 +212,6 @@ setSources(){
212212
esac
213213
}
214214

215+
para=$1
215216
setSources
216217
echo -e "${GREEN}Done${PLAIN}"

0 commit comments

Comments
 (0)