ipld-eth-server/vendor/github.com/ipfs/go-ipfs/test/bin/continueyn
2019-12-02 13:24:46 -06:00

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