From: Silvio Rhatto Date: Sat, 5 Aug 2023 16:11:40 +0000 (-0300) Subject: Fix: collector: be a bit less verbose X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=72ddde6eea6034fdee98e52c5f4f20d853e4638c;p=scripts.git Fix: collector: be a bit less verbose --- diff --git a/collector b/collector index aba470e..5967e52 100755 --- a/collector +++ b/collector @@ -12,7 +12,10 @@ ACTION="$1" # Check if [ -z "$COLLECTOR_FILE" ]; then - echo "$BASENAME: please export the COLLECTOR_FILE environment variable pointing to your collector markdown file" + # Do not be verbose here, otherwise the "status" command will show an error + # message on unconfgirued systems. Maybe that should be controlled by a verbosity flag. + #echo "$BASENAME: please export the COLLECTOR_FILE environment variable pointing to your collector markdown file" + exit 1 elif [ ! -e "$COLLECTOR_FILE" ]; then echo "$BASENAME: error: file not found: $COLLECTOR_FILE"