Download latest firmware instead of old

This commit is contained in:
Hyy2001X 2020-10-02 23:38:18 +08:00
parent d3eb56e1bd
commit f5e9ed4eca
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ if [ "$CURRENT_DEVICE" == "" ];then
fi
cd /tmp
TIME && echo "正在获取云端固件版本..."
GET_Version=`wget -q $Github_Tags -O - | egrep -o 'R[0-9]+.[0-9]+.[0-9]+.[0-9]+' | awk 'END {print}'
GET_Version=`wget -q $Github_Tags -O - | egrep -o 'R[0-9]+.[0-9]+.[0-9]+.[0-9]+' | awk 'END {print}'`
if [ "$GET_Version" == "" ];then
TIME && echo "云端固件版本获取失败,请稍后重试!"
exit