Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oooldking committed Nov 2, 2018
1 parent d2fad6b commit d33282f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions superupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ getAbout() {
echo ""
echo " Intro: https://www.oldking.net/697.html"
echo " Copyright (C) 2018 Oldking [email protected]"
echo -e " Version: ${GREEN}1.0.2${PLAIN} (2 Nov 2018)"
echo -e " Version: ${GREEN}1.0.3${PLAIN} (2 Nov 2018)"
echo " Usage: wget -qO- git.io/superupdate.sh | bash"
echo ""
}
Expand Down Expand Up @@ -176,7 +176,7 @@ setSources(){
updateInit
case "$release" in
debian)
case $1 in
case $para in
'fastly'|'-fastly'|'--fastly' )
setDebian;;
'cn'|'-cn'|'--cn' )
Expand All @@ -194,15 +194,15 @@ setSources(){
esac
apt-get update;;
ubuntu)
case $1 in
case $para in
'restore'|'-restore'|'--restore' )
restore;;
*)
setUbuntu;
esac
apt-get update;;
centos)
case $1 in
case $para in
'restore'|'-restore'|'--restore' )
restore;;
*)
Expand All @@ -212,5 +212,6 @@ setSources(){
esac
}

para=$1
setSources
echo -e "${GREEN}Done${PLAIN}"

0 comments on commit d33282f

Please sign in to comment.