diff --git a/dev.sh b/dev.sh index 1dfedec3..c9ca0f14 100755 --- a/dev.sh +++ b/dev.sh @@ -19,5 +19,6 @@ if [ -L "$TOTALFINDER_RESOURCES" ]; then # is is a symlink? fi # ok, we should be safe to do the replacement -mv "$TOTALFINDER_RESOURCES" "$TOTALFINDER_RESOURCES_BACKUP" -ln -s "$ROOT/plugin/Resources" "$TOTALFINDER_RESOURCES" \ No newline at end of file +sudo mv "$TOTALFINDER_RESOURCES" "$TOTALFINDER_RESOURCES_BACKUP" +sudo ln -s "$ROOT/plugin/Resources" "$TOTALFINDER_RESOURCES" +sudo cp "$TOTALFINDER_RESOURCES_BACKUP/"*.nib "$TOTALFINDER_RESOURCES" # steal compiled nibs from production \ No newline at end of file diff --git a/restart.sh b/restart.sh index c5bd70b2..cc2fd8cb 100755 --- a/restart.sh +++ b/restart.sh @@ -3,8 +3,10 @@ # quit Finder osascript -e "tell application \"Finder\" to quit" -# compile xibs -./compile.sh +# compile xibs - skip this for now +# it depends on custom plugin I had +# Failure Reason: Could not determine the location of the plug-in with the identifier net.wafflesoftware.ShortcutRecorder.IB.Leopard +# ./compile.sh # start TotalFinder agan open /Applications/TotalFinder.app \ No newline at end of file diff --git a/undev.sh b/undev.sh index ad57c17f..64d9e96d 100755 --- a/undev.sh +++ b/undev.sh @@ -2,10 +2,10 @@ TOTALFINDER_RESOURCES='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/Resources' TOTALFINDER_RESOURCES_BACKUP='/Applications/TotalFinder.app/Contents/Resources/TotalFinder.bundle/Contents/ResourcesOrig' -if [ ! -d "$TOTALFINDER_RESOURCES" ]; then # is it a folder? +if [ -d "$TOTALFINDER_RESOURCES" ]; then # is it a folder? if [ -L "$TOTALFINDER_RESOURCES" ]; then # is is a symlink? - rm "$TOTALFINDER_RESOURCES" - mv "$TOTALFINDER_RESOURCES_BACKUP" "$TOTALFINDER_RESOURCES" + sudo rm "$TOTALFINDER_RESOURCES" + sudo mv "$TOTALFINDER_RESOURCES_BACKUP" "$TOTALFINDER_RESOURCES" exit fi fi