aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-08-05 13:11:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-08-05 13:11:40 -0300
commit72ddde6eea6034fdee98e52c5f4f20d853e4638c (patch)
treefaedae4c596985d6ca44b9d501e191cb1ab9b998
parentae3d8473f8dec95c159a66170630bdac38e7ae3d (diff)
downloadscripts-72ddde6eea6034fdee98e52c5f4f20d853e4638c.tar.gz
scripts-72ddde6eea6034fdee98e52c5f4f20d853e4638c.tar.bz2
Fix: collector: be a bit less verbose
-rwxr-xr-xcollector5
1 files changed, 4 insertions, 1 deletions
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"