bento: improve the user experience when using test/switch

This commit is contained in:
Solene Rapenne 2022-09-11 13:52:20 +02:00
parent 32ce30c332
commit 96c5dd8644
1 changed files with 1 additions and 0 deletions

1
bento
View File

@ -533,6 +533,7 @@ then
then
SUDO="sudo"
echo "you are about to $COMMAND $NAME, are you sure? (yes/no)"
printf "> "
read -r answer
[ "${answer}" = "yes" ] || exit 1
else