Skip to content

Commit

Permalink
It's the right app, if it's already removed.
Browse files Browse the repository at this point in the history
[#288 state:fixed assigned:mento]
  • Loading branch information
Mento committed Jan 23, 2015
1 parent 0390d48 commit e920fec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Installer/postinstall.sh
Expand Up @@ -64,10 +64,12 @@ GK_PATH=$($PLIST_BUDDY -c "Print persistent-apps:$[$GK_INDEX]:tile-data:file-dat
if [[ "${GK_PATH:0:7}" == 'file://' ]] ;then
GK_PATH=$(perl -MURI -le 'print URI->new(<>)->file' <<<"$GK_PATH")
fi
BUNDLE_ID=$($PLIST_BUDDY -c "Print CFBundleIdentifier" "$GK_PATH/Contents/Info.plist")
if [[ "$BUNDLE_ID" != "$GK_ID_OLD" ]] ;then
echo "Bundle ID doesn't match. Continue..."
exit 0
if [[ -e "$GK_PATH" ]] ;then
BUNDLE_ID=$($PLIST_BUDDY -c "Print CFBundleIdentifier" "$GK_PATH/Contents/Info.plist")
if [[ "$BUNDLE_ID" != "$GK_ID_OLD" ]] ;then
echo "Bundle ID doesn't match. Continue..."
exit 0
fi
fi
installLocation=$(mdfind -onlyin /Applications "kMDItemCFBundleIdentifier = org.gpgtools.gpgkeychain" | head -1)
Expand Down

0 comments on commit e920fec

Please sign in to comment.