diff --git a/1panel/restore.sh b/1panel/restore.sh index a458a57..97875ca 100644 --- a/1panel/restore.sh +++ b/1panel/restore.sh @@ -35,7 +35,8 @@ check_istoreos_style_installed() { # 恢复标准的iStoreOS normal_restore() { # 提示用户输入要恢复的文件路径 - read -p "请输入要恢复的文件路径(默认: /tmp/upload/backup.tar.gz): " file_path + green "请输入要恢复的文件路径(默认: /tmp/upload/backup.tar.gz) " + read -p ":" file_path # 如果用户没有输入,使用默认路径 if [ -z "$file_path" ]; then @@ -64,7 +65,6 @@ restore() { normal_restore ;; *) - echo "Router name does not contain '3000', '6000', or '2500'." normal_restore ;; esac