Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
preinstall remove old FAHControl
Browse files Browse the repository at this point in the history
remove old app so system will not relocate if app bundle id has changed
  • Loading branch information
kbernhagen committed May 11, 2018
1 parent 2589125 commit b618a77
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions osx/scripts/preinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash -e

# fahcontrol preinstall

# delete old app, so system will not relocate if bundle id has changed
# also delete improperly moved app and cruft

A1="/Applications/Folding@home/FAHControl.app"
A2="/Applications/Folding@home/FAHControl/FAHControl.app"

F1="/Applications/Folding@home/FAHControl/.DS_Store"
D1="/Applications/Folding@home/FAHControl"

[ -d "$A1" ] && rm -rf "$A1" || true
[ -d "$A2" ] && rm -rf "$A2" || true

[ -f "$F1" ] && rm -f "$F1" || true
[ -d "$D1" ] && rmdir "$D1" || true

0 comments on commit b618a77

Please sign in to comment.