#!/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] " REPLY
echo
case "$REPLY" in
    [Yy]*) exit 0 ;;
    *) exit 1 ;;
esac
