Fix up the pre and post install scripts

This commit is contained in:
Jeremy Rand 2018-07-20 20:23:12 -05:00
parent 9cbfcab099
commit d887b5d054
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,11 @@
#!/bin/bash
defaults write ~/Library/Developer/Xcode/Plug-ins/OrcaM.ideplugin/Contents/Info.plist DVTPlugInCompatibilityUUIDs -array $(defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID)
if [ ! -f /Applications/Xcode.app/Contents/Info.plist ]
then
exit 0
fi
UUID=`defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
defaults write "$2/Plug-ins/OrcaM.ideplugin/Contents/Info.plist" DVTPlugInCompatibilityUUIDs -array-add "${UUID}"

View File

@ -1,9 +1,6 @@
#!/bin/bash
for item in ~/"Library/Developer/Xcode/Templates/Apple IIgs" ~/"Library/Developer/Xcode/Templates/File Templates/Apple IIgs"
do
if [ -d "$item" ]
then
rm -rf "$item"
fi
done
rm -rf "$2/Templates/Apple IIgs"
rm -rf "$2/Templates/File Templates/Apple IIgs"
rm -rf "$2/Plug-ins/OrcaM.ideplugin"