mirror of
https://github.com/rocketraman/sane-scan-pdf.git
synced 2025-05-21 10:00:12 -07:00
Help now shows current content of config files
This commit is contained in:
parent
5d71ca2ff2
commit
144067840c
14
scan
14
scan
@ -165,9 +165,23 @@ if [[ $HELP == 1 ]]; then
|
|||||||
echo "CONFIGURATION"
|
echo "CONFIGURATION"
|
||||||
echo "Local configuration can be written in the form of environment variables to:"
|
echo "Local configuration can be written in the form of environment variables to:"
|
||||||
echo " $DEFAULTS"
|
echo " $DEFAULTS"
|
||||||
|
if [[ -e "$DEFAULTS" ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "This file exists and currently contains:"
|
||||||
|
echo "-----"
|
||||||
|
cat "$DEFAULTS"
|
||||||
|
echo "-----"
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "A pre-scan hook script can be written to:"
|
echo "A pre-scan hook script can be written to:"
|
||||||
echo " $SCANPRE"
|
echo " $SCANPRE"
|
||||||
|
if [[ -e "$SCANPRE" ]]; then
|
||||||
|
echo ""
|
||||||
|
echo "This file exists and currently contains:"
|
||||||
|
echo "-----"
|
||||||
|
cat "$SCANPRE"
|
||||||
|
echo "-----"
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user