Update '.confirm_reboot'
This commit is contained in:
parent
ae99c5b75b
commit
e83af5a801
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue