github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/test/bin/continueyn (about) 1 #!/bin/sh 2 # Author: Juan Batiz-Benet <juan@benet.ai> 3 # MIT LICENSED 4 5 # if not a terminal, exit 0 (yes!) 6 test -t 1 || exit 0 7 8 read -p "continue? [y/N] " REPLY 9 echo 10 case "$REPLY" in 11 [Yy]*) exit 0 ;; 12 *) exit 1 ;; 13 esac