Permalink
Browse files

Check if prefpane is installed before trying to uninstall it

  • Loading branch information...
1 parent b3b4a15 commit 05a242849f4c2010ac7ff5f627557156964e962f @bfleischer bfleischer committed Nov 12, 2013
Showing with 11 additions and 8 deletions.
  1. +11 −8 packaging/uninstaller/uninstall-osxfuse-core.sh
@@ -248,14 +248,17 @@ do
IS_BOTCHED_UNINSTALL=1
fi
done
-for x in `/usr/bin/lsbom -sd "$BOMFILE_PREFPANE" | /usr/bin/sort -r`
-do
- remove_dir "$INSTALL_VOLUME/$x"
- if [ $? -ne 0 ]
- then
- IS_BOTCHED_UNINSTALL=1
- fi
-done
+if [ -e "$BOMFILE_PREFPANE" ]
+then
+ for x in `/usr/bin/lsbom -sd "$BOMFILE_PREFPANE" | /usr/bin/sort -r`
+ do
+ remove_dir "$INSTALL_VOLUME/$x"
+ if [ $? -ne 0 ]
+ then
+ IS_BOTCHED_UNINSTALL=1
+ fi
+ done
+fi
IFS="$OLD_IFS"
# 6. Remove the Receipt.

0 comments on commit 05a2428

Please sign in to comment.