Uninstall appmenus only if present in VM dir (#192)

This commit is contained in:
Marek Marczykowski 2011-04-05 11:58:21 +02:00
parent 449bcb09ac
commit c2498a33e2

View File

@ -8,5 +8,7 @@ if [ $# != 1 ]; then
exit
fi
xdg-desktop-menu uninstall $APPSDIR/*.directory $APPSDIR/*.desktop
if ls $APPSDIR/*.directory $APPSDIR/*.desktop > /dev/null 2>&1; then
xdg-desktop-menu uninstall $APPSDIR/*.directory $APPSDIR/*.desktop
fi