Help now shows current content of config files

This commit is contained in:
Raman Gupta 2022-01-18 01:12:25 -05:00
parent 5d71ca2ff2
commit 144067840c

14
scan
View File

@ -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