Add error checking to compiled scripts

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3283 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2006-01-14 18:35:50 +00:00
parent f411884627
commit b027081e5b
4 changed files with 152 additions and 92 deletions

View File

@ -119,20 +119,16 @@ expandv() # $* = list of variable names
fix_bang() {
local i;
if [ $COMMAND = compile ]; then
echo $@ | sed 's/!/! /g'
else
for i in $@; do
case $i in
!*)
echo "! ${i#!}"
;;
*)
echo $i
;;
esac
done
fi
for i in $@; do
case $i in
!*)
echo "! ${i#!}"
;;
*)
echo $i
;;
esac
done
}
#