use $PAGER in the 'show macro' command

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-17 10:57:39 -08:00
parent 88284ed568
commit ab9f340c55
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1161,6 +1161,7 @@ show_macros() {
done
}
echo "Shorewall $SHOREWALL_VERSION Macro $1 at $g_hostname - $(date)"
#
# Show Command Executor
#
@ -1441,8 +1442,7 @@ show_command() {
[ $# -ne 2 ] && too_many_arguments $2
for directory in $(split $CONFIG_PATH); do
if [ -f ${directory}/macro.$2 ]; then
echo "Shorewall $SHOREWALL_VERSION Macro $2 at $g_hostname - $(date)"
cat ${directory}/macro.$2
eval show_a_macro $2 $g_pager
return
fi
done