From 6773df8eae0091197d5a1bea73d03086ae5e0881 Mon Sep 17 00:00:00 2001 From: Katie Holly Date: Tue, 26 Mar 2019 00:48:21 +0100 Subject: [PATCH] suppress grep output --- offload-one | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offload-one b/offload-one index 002cea5..b7175b4 100755 --- a/offload-one +++ b/offload-one @@ -36,7 +36,7 @@ function mayicontinue { mayicontinue -if test -z "${OFFLOAD_TARGET}" && ! cat ./offload_targets 2> /dev/null | grep -E '^rsync://[^/]+/[^/]+'; then +if test -z "${OFFLOAD_TARGET}" && ! cat ./offload_targets 2> /dev/null | grep -qE '^rsync://[^/]+/[^/]+'; then echo "No valid offload target specified in OFFLOAD_TARGET environment variable or ./offload_targets file, aborting offload" sleep 30 exit 1