Update restore.sh

This commit is contained in:
悟空的日常镜像仓库 2024-07-02 13:32:33 +08:00
parent 974cb98bc2
commit 79553ad690

View File

@ -35,7 +35,8 @@ check_istoreos_style_installed() {
# 恢复标准的iStoreOS # 恢复标准的iStoreOS
normal_restore() { 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 if [ -z "$file_path" ]; then
@ -64,7 +65,6 @@ restore() {
normal_restore normal_restore
;; ;;
*) *)
echo "Router name does not contain '3000', '6000', or '2500'."
normal_restore normal_restore
;; ;;
esac esac