DEB tdeio-umountwrapper: Delete the servicemenus directories only if it still exists.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/70/head
Slávek Banko 4 years ago
parent 21add6f493
commit fd2d174dd1
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -26,11 +26,13 @@ case "$1" in
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
[ ! -d /opt/trinity/share/apps/konqueror/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/konqueror/servicemenus/
fi
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
[ ! -d /opt/trinity/share/apps/d3lphin/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/d3lphin/servicemenus/
fi
;;

@ -26,11 +26,13 @@ case "$1" in
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/konqueror/servicemenus/media_safelyremove.desktop
[ ! -d /opt/trinity/share/apps/konqueror/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/konqueror/servicemenus/
fi
divert=`dpkg-divert --listpackage "/opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop"`
if [ -n "$divert" ] && [ "$divert" = "tdeio-umountwrapper-trinity" ]; then
dpkg-divert --rename --remove /opt/trinity/share/apps/d3lphin/servicemenus/media_safelyremove.desktop
[ ! -d /opt/trinity/share/apps/d3lphin/servicemenus ] || \
rmdir --ignore-fail-on-non-empty /opt/trinity/share/apps/d3lphin/servicemenus/
fi
;;

Loading…
Cancel
Save