添加参数 -V <local|cloud>: 打印当前|云端脚本版本
This commit is contained in:
parent
16496f771a
commit
11781f419f
|
@ -464,6 +464,19 @@ LOAD_VARIABLE ${Default_Variable} ${Custom_Variable}
|
||||||
|
|
||||||
while [[ $1 ]];do
|
while [[ $1 ]];do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
-V)
|
||||||
|
shift
|
||||||
|
case $1 in
|
||||||
|
local)
|
||||||
|
[[ -n ${Version} ]] && echo "${Version}" || echo "未知"
|
||||||
|
;;
|
||||||
|
cloud)
|
||||||
|
Cloud_Script_Version=$(wget -q --tries 3 --timeout 5 https://raw.fastgit.org/Hyy2001X/AutoBuild-Actions/master/Scripts/AutoUpdate.sh -O - | grep "export Version=" | cut -c16-200 | awk 'NR==1')
|
||||||
|
[[ ${Cloud_Script_Version} ]] && echo "${Cloud_Script_Version}" || echo "未知"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
--clean)
|
--clean)
|
||||||
REMOVE_FW_CACHE normal $*
|
REMOVE_FW_CACHE normal $*
|
||||||
;;
|
;;
|
||||||
|
@ -591,4 +604,4 @@ while [[ $1 ]];do
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue