forked from extern/shorewall_code
use $PAGER in the 'show macro' command
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
88284ed568
commit
ab9f340c55
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user