3 if [ "$1" != "upgrade" ]; then
4 update-alternatives --remove dummy /usr/bin/dummy-alternative
7 if ([ "$1" = "upgrade" ] || [ "$1" = "remove" ]) && [ -L /usr/doc/maintainer-scripts ]; the
9 rm -f /usr/doc/maintainer-scripts
13 This is all really bad bash specific code!!!
15 source /bar/baz/bat foo
18 # ok, back to checking
19 if [ "$2" == "purge" ]; then
26 echo "foo" &>/dev/null
31 trap "echo hi" EXIT HUP 3
33 if [[ "$2" = "purge" ]]; then
38 if test -n $(echo foo | perl -pe 's/[[:space:]]//go'); then
42 update-rc.d foo remove
44 # More false positives for bashism checks. None of these are errors.
45 echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'
46 echo "$line" | grep -q "${fonts},${foo}"
49 perl -e "print q( kill -HUP $? )"
51 # Still catch disallowed expansions in double-quotes, though.
54 # The wrong way to run an init script (no invoke-rc.d).
55 /etc/init.d/package stop
57 # This is the only install-sgmlcatalog call that's allowed.
58 install-sgmlcatalog --quiet --remove package
60 # More bashisms checks
81 bar="$(cut '-d|' -f2 <<< "$foo")"
136 diff <(tac a) <(tac b)
157 # Brace expansion checks
168 # This is a function with a bad name