1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

Merge pull request #931 from jbenet/fix_continueyn

test/bin: fix continueyn on Linux
This commit is contained in:
Juan Batiz-Benet
2015-03-17 04:16:22 -07:00

View File

@ -5,9 +5,9 @@
# if not a terminal, exit 0 (yes!) # if not a terminal, exit 0 (yes!)
test -t 1 || exit 0 test -t 1 || exit 0
read -p "continue? [y/N] " read -p "continue? [y/N] " REPLY
echo echo
if [[ $REPLY =~ ^[Yy] ]]; then case "$REPLY" in
exit 0 [Yy]*) exit 0 ;;
fi *) exit 1 ;;
exit 1 esac