On Thu, 3 Jul 2003, Joey Hess wrote: > #!/bin/sh > if [ "$1" = configure ] && grep -q evil /etc/myconfig; then > dpkg-log --priority=critical \ > --warning=$"/etc/myconfig has evil in it! See README.Debian!" > elsif [ "$phase_of_moon" = full ]; then > dpkg-log --priority=critical \ > --error=$"This package only upgrades during new moons." > exit 1 > fi
Please call it deb-log, not dpkg-log. Also, note that $"" is bash, not posix, while your #! line is only /bin/sh.