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