fix: Resolve the incompatibility issues with script updates.

This commit is contained in:
dqzboy
2024-07-29 19:46:03 +08:00
parent b2d93b300f
commit e72392c407

View File

@@ -2538,6 +2538,10 @@ INSTALL_OR_UPDATE_CMD() {
else
WARN "正在进行脚本更新,请稍等..."
fi
if [ -f "$TARGET_PATH" ]; then
rm -f "$TARGET_PATH" &>/dev/null
fi
wget -q -O "$TARGET_PATH" "$DOWNLOAD_URL" &>/dev/null
if [ $? -eq 0 ]; then
success=true