修复 path=<> 自定义固件保存位置参数

This commit is contained in:
Hyy2001X 2021-06-12 23:33:17 +08:00
parent 9ddaca88b6
commit 10759087d4
1 changed files with 3 additions and 3 deletions

View File

@ -303,9 +303,9 @@ PREPARE_UPGRADES() {
unset Proxy_Echo
}
[[ $1 =~ path= ]] && {
[ -z "$(echo ${Z} | cut -d "=" -f2)" ] && TIME r "保存路径不能为空!" && exit 1
FW_SAVE_PATH=$(echo ${Z} | cut -d "=" -f2)
TIME g "使用自定义固件保存位置: ${FW_SAVE_PATH}"
[ -z "$(echo $1 | cut -d "=" -f2)" ] && TIME r "固件保存目录不能为空!" && exit 1
FW_SAVE_PATH=$(echo $1 | cut -d "=" -f2)
TIME g "自定义固件保存位置: ${FW_SAVE_PATH}"
}
[[ $1 == -F || $1 == --force ]] && Force_Write=1
case $1 in