kubo/test/bin/continueyn
2014-12-09 02:24:11 -08:00

14 lines
209 B
Bash
Executable File

#!/bin/sh
# Author: Juan Batiz-Benet <juan@benet.ai>
# MIT LICENSED
# if not a terminal, exit 0 (yes!)
test -t 1 || exit 0
read -p "continue? [y/N] "
echo
if [[ $REPLY =~ ^[Yy] ]]; then
exit 0
fi
exit 1