fix: Resolve the incompatibility issues with script updates.

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

View File

@@ -2539,9 +2539,6 @@ INSTALL_OR_UPDATE_CMD() {
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