提交 bcc8880a 作者: Juan Batiz-Benet

Merge pull request #931 from jbenet/fix_continueyn

test/bin: fix continueyn on Linux
......@@ -5,9 +5,9 @@
# if not a terminal, exit 0 (yes!)
test -t 1 || exit 0
read -p "continue? [y/N] "
read -p "continue? [y/N] " REPLY
echo
if [[ $REPLY =~ ^[Yy] ]]; then
exit 0
fi
exit 1
case "$REPLY" in
[Yy]*) exit 0 ;;
*) exit 1 ;;
esac
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论