X-Git-Url: https://git.madduck.net/code/molly-guard.git/blobdiff_plain/fea7b8cdf75e8aa668889f8db66270a5f971ef1a..9b298025360993e9836b5abf41ca27469fb044de:/run.d/30-ask-hostname 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