From 9b298025360993e9836b5abf41ca27469fb044de Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 19 Apr 2008 15:22:35 +0200 Subject: [PATCH] do not fail if called noninteractively --- run.d/30-ask-hostname | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run.d/30-ask-hostname b/run.d/30-ask-hostname index 6e33fe1..70b18d9 100755 --- a/run.d/30-ask-hostname +++ b/run.d/30-ask-hostname @@ -19,10 +19,7 @@ for arg in "$@"; do done # require an interactive terminal connected to stdin -if ! test -t 0; then - echo "E: $ME: not connected to a terminal." - exit 1 -fi +test -t 0 || exit 0 # we've been asked to always protect this host if [ ${ALWAYS_QUERY_HOSTNAME:-0} -eq 1 ]; then -- 2.39.2