diff --git a/test/bin/continueyn b/test/bin/continueyn index f38b93de8..432ea7291 100755 --- a/test/bin/continueyn +++ b/test/bin/continueyn @@ -2,9 +2,12 @@ # Author: Juan Batiz-Benet # MIT LICENSED +# if not a terminal, exit 0 (yes!) +test -t 1 || exit 0 + read -p "continue? [y/N] " echo -if [[ $REPLY =~ ^[Yy]$ ]]; then +if [[ $REPLY =~ ^[Yy] ]]; then exit 0 fi -exit -1 +exit 1