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