bb/scripts/bbconfirm
Bruce Hill 88fd9c416b Moved bbstartup into a script, renamed helper/ -> scripts/, and added
bbshutdown script. Also tweaked some of the precedence.
2020-02-24 03:39:44 -08:00

10 lines
232 B
Bash
Executable File

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