1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# shellcheck shell=bash post_install() { echo 'Pointing /usr/bin/awk to mawk' /usr/bin/ln -sfT mawk /usr/bin/awk } post_upgrade() { echo 'Re-pointing /usr/bin/awk to mawk' /usr/bin/ln -sfT mawk /usr/bin/awk } post_remove() { echo 'Re-pointing /usr/bin/awk to gawk' /usr/bin/ln -sfT gawk /usr/bin/awk } # eof