mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-21 20:21:19 +01:00
Tweak to 'show macros' command
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4578 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
221ab97220
commit
06ddd1bb02
@ -1039,11 +1039,11 @@ show_command() {
|
||||
macros)
|
||||
[ $# -gt 1 ] && usage 1
|
||||
for macro in ${SHAREDIR}/macro.*; do
|
||||
foo=`grep 'This macro' $macro | head -n 1`
|
||||
foo=`grep 'This macro' $macro | sed 's/This macro //'`
|
||||
if [ -n "$foo" ]; then
|
||||
macro=${macro#*.}
|
||||
foo=${foo%.*}
|
||||
echo " $macro ${foo#\#}" | sed 's/This macro //'
|
||||
echo " $macro ${foo#\#}"
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user