优化代码
This commit is contained in:
parent
85dee18412
commit
6444ebda97
|
@ -214,15 +214,15 @@ else
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
-x)
|
-x)
|
||||||
wget -q ${CLOUD_Script} -O ${Download_Path}/AutoUpdate.sh
|
wget -q --tries 3 --timeout 5 ${CLOUD_Script} -O ${Download_Path}/AutoUpdate.sh
|
||||||
if [[ $? == 0 ]];then
|
if [[ $? == 0 ]];then
|
||||||
TIME && echo "AutoUpdate 脚本更新成功!"
|
TIME && echo "AutoUpdate 脚本更新成功!"
|
||||||
rm -f /bin/AutoUpdate.sh
|
rm /bin/AutoUpdate.sh
|
||||||
mv -f ${Download_Path}/AutoUpdate.sh /bin
|
mv -f ${Download_Path}/AutoUpdate.sh /bin
|
||||||
chmod +x /bin/AutoUpdate.sh
|
chmod +x /bin/AutoUpdate.sh
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
TIME && echo "AutoUpdate 脚本更新失败!"
|
TIME && echo "AutoUpdate 脚本更新失败,请检查网络后重试!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue