]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-udev
r1967: * dh_installudev: Fix postrm to not fail if the udev symlink is missing.
[debhelper.git] / autoscripts / postrm-udev
index 15779ca694aedaef3f75a9e28f62f89b0b8f5d1b..b0af6c01a9c807d47b4bef1c4c0e09764276db2c 100644 (file)
@@ -1,4 +1,5 @@
 if [ "$1" = purge ]; then
-       [ -L /etc/udev/rules.d/#PRIO##FILE# ] && \
-       rm /etc/udev/rules.d/#PRIO##FILE#
+       if [ -L /etc/udev/rules.d/#PRIO##FILE# ]; then
+               rm /etc/udev/rules.d/#PRIO##FILE#
+       fi
 fi