diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-08-05 13:11:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-08-05 13:11:40 -0300 |
commit | 72ddde6eea6034fdee98e52c5f4f20d853e4638c (patch) | |
tree | faedae4c596985d6ca44b9d501e191cb1ab9b998 | |
parent | ae3d8473f8dec95c159a66170630bdac38e7ae3d (diff) | |
download | scripts-72ddde6eea6034fdee98e52c5f4f20d853e4638c.tar.gz scripts-72ddde6eea6034fdee98e52c5f4f20d853e4638c.tar.bz2 |
Fix: collector: be a bit less verbose
-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" |