Update '.confirm_reboot'

This commit is contained in:
Elmar Sönser 2021-12-05 09:49:48 +01:00
parent ae99c5b75b
commit e83af5a801

View file

@ -1,7 +1,7 @@
### to prevent accidental shudown, add confirm dialog to commands:
confirm() {
# call with a prompt string or use a default
read -r -p "${1:-Are you sure? [y/N]} " response
read -r -p "${1:-Server: $HOST - Are you sure? [y/N]} " response
case "$response" in
[yY][eE][sS]|[yY])
true