From 144067840c0295521dc15501dbfecfe35335f1ac Mon Sep 17 00:00:00 2001 From: Raman Gupta Date: Tue, 18 Jan 2022 01:12:25 -0500 Subject: [PATCH] Help now shows current content of config files --- scan | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scan b/scan index 18a66d1..959c0c1 100755 --- a/scan +++ b/scan @@ -165,9 +165,23 @@ if [[ $HELP == 1 ]]; then echo "CONFIGURATION" echo "Local configuration can be written in the form of environment variables to:" echo " $DEFAULTS" + if [[ -e "$DEFAULTS" ]]; then + echo "" + echo "This file exists and currently contains:" + echo "-----" + cat "$DEFAULTS" + echo "-----" + fi echo "" echo "A pre-scan hook script can be written to:" echo " $SCANPRE" + if [[ -e "$SCANPRE" ]]; then + echo "" + echo "This file exists and currently contains:" + echo "-----" + cat "$SCANPRE" + echo "-----" + fi echo "" exit 0 fi