From 0b1763aa0b5ebb1f50d0d374804c5d27996f8c00 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 23 May 2015 01:16:56 -0700 Subject: [PATCH] clarify default --- sh/confirm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/confirm b/sh/confirm index 1065c76..a74bb14 100755 --- a/sh/confirm +++ b/sh/confirm @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ -n "${ZSH_VERSION:-}" ]; then confirm() { - read -q '?Continue? [Y/n] ' + read -q '?Continue? [y/N] ' ret=$? echo return $ret @@ -9,7 +9,7 @@ if [ -n "${ZSH_VERSION:-}" ]; then else confirm() { # specify stdin (1) to avoid taking input from pipes - read -n1 -u 1 -p "Continue? [Y/n] " c + read -n1 -u 1 -p "Continue? [y/N] " c echo [ "$c" != 'y' ] && [ "$c" != 'Y' ] && return 1 return 0