1 #!/bin/sh 2 # Ask for user confirmation 3 set -e 4 if command -v ask >/dev/null; then 5 ask -n "$(printf "$1Is that okay?\033[?25h")" 6 else 7 reply="$(bbask -1 "$(printf "$1\033[0;1mIs that okay? [y/N] ")")" 8 [ "$reply" != 'y' ] 9 fi