summaryrefslogtreecommitdiffstats
path: root/tests/t-disappear-diverted-other/pkg-divert/DEBIAN/preinst
blob: ad840e694d9395723f44f404edb7b1351d18c138 (plain)
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