fix typo in bash scripts
This commit is contained in:
+4
-4
@@ -188,16 +188,16 @@ install_s-ui() {
|
|||||||
echo -e "Got s-ui latest version: ${last_version}, beginning the installation..."
|
echo -e "Got s-ui latest version: ${last_version}, beginning the installation..."
|
||||||
wget -N --no-check-certificate -O /tmp/s-ui-linux-$(arch).tar.gz https://github.com/alireza0/s-ui/releases/download/${last_version}/s-ui-linux-$(arch).tar.gz
|
wget -N --no-check-certificate -O /tmp/s-ui-linux-$(arch).tar.gz https://github.com/alireza0/s-ui/releases/download/${last_version}/s-ui-linux-$(arch).tar.gz
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo -e "${red}Dowanloading s-ui failed, please be sure that your server can access Github ${plain}"
|
echo -e "${red}Downloading s-ui failed, please be sure that your server can access Github ${plain}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
last_version=$1
|
last_version=$1
|
||||||
url="https://github.com/alireza0/s-ui/releases/download/${last_version}/s-ui-linux-$(arch).tar.gz"
|
url="https://github.com/alireza0/s-ui/releases/download/${last_version}/s-ui-linux-$(arch).tar.gz"
|
||||||
echo -e "Begining to install s-ui v$1"
|
echo -e "Beginning the install s-ui v$1"
|
||||||
wget -N --no-check-certificate -O /tmp/s-ui-linux-$(arch).tar.gz ${url}
|
wget -N --no-check-certificate -O /tmp/s-ui-linux-$(arch).tar.gz ${url}
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo -e "${red}dowanload s-ui v$1 failed,please check the verison exists${plain}"
|
echo -e "${red}download s-ui v$1 failed,please check the version exists${plain}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -228,6 +228,6 @@ install_s-ui() {
|
|||||||
s-ui help
|
s-ui help
|
||||||
}
|
}
|
||||||
|
|
||||||
echo -e "${green}Excuting...${plain}"
|
echo -e "${green}Executing...${plain}"
|
||||||
install_base
|
install_base
|
||||||
install_s-ui $1
|
install_s-ui $1
|
||||||
@@ -290,7 +290,7 @@ stop() {
|
|||||||
if [[ $? == 1 ]]; then
|
if [[ $? == 1 ]]; then
|
||||||
LOGI "${1} stopped successfully"
|
LOGI "${1} stopped successfully"
|
||||||
else
|
else
|
||||||
LOGE "Falied to stop ${1}, Probably because the stop time exceeds two seconds, Please check the log information later"
|
LOGE "Failed to stop ${1}, Probably because the stop time exceeds two seconds, Please check the log information later"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user