Browse Source

Update 'wiper.sh'

panda 2 years ago
parent
commit
8d494019b1
1 changed files with 8 additions and 2 deletions
  1. 8 2
      wiper.sh

+ 8 - 2
wiper.sh

@@ -64,8 +64,14 @@ elif [[ $disk_type == *"rpm"* ]]; then
 	disk_ssd=0
 #	echo "disk is not ssd"
 else
-	echo "disk type unknown, exiting"
-	exit
+	echo "disk type unknown"
+	read -p "Continue anyway?" choice
+	case "$choice" in
+	  y|Y ) echo "continuing";;
+	  n|N ) echo "exiting" && exit;;
+	  * ) echo "invalid" && exit;;
+	esac
+#	exit
 fi
 
 #