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