diff --git a/chr.sh b/chr.sh index 3e4fcff..ba278c9 100644 --- a/chr.sh +++ b/chr.sh @@ -64,7 +64,7 @@ EOF fi echo "WARNING: All data on /dev/$STORAGE will be lost!" -read -p "Do you want to continue? [Y/n]: " confirm +read -p "Do you want to continue? [Y/n]: " confirm < /dev/tty confirm=${confirm:-Y} if [[ "$confirm" =~ ^[Nn]$ ]]; then echo "Operation aborted."