1 2 3 4 5 6 7 8
#!/bin/sh set -e if [ "$1" = "purge" ] || [ "$1" = "disappear" ]; then dpkg-divert --rename --remove /test-dir/test-normal fi