diff options
-rwxr-xr-x | collector | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" |