Skip to content

Commit

Permalink
Fix snapshot not giving default "y" and snap name
Browse files Browse the repository at this point in the history
  • Loading branch information
ghfields authored May 19, 2018
1 parent 4bbce0b commit e7eeff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpooler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ zfs set mountpoint=/ $pool/ROOT/ubuntu-1

while true; do
echo -e $green 'Would you like to create a snapshot before rebooting? : ' $nocolor
read -i "y" yn
read -i "y" -e yn
case $yn in
[Yy]* ) zfs snapshot $pool/ROOT/ubuntu-1@pre-reboot; break;;
[Yy]* ) zfs snapshot $pool/ROOT/ubuntu-1@install-pre-reboot; break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
Expand Down

0 comments on commit e7eeff2

Please sign in to comment.