#!/bin/sh cd "`dirname "$0"`" BASE="$HOME/Library/Application Support/Open Media Library" if [[ ! -e "/usr/sbin/miredo" ]]; then open -W ../Resources/miredo-osx-v1.2.6-beta2.pkg fi if [[ -e "$BASE" ]]; then if [[ -e "$HOME/Library/LaunchAgents/com.openmedialibrary.loginscript.plist" ]]; then launchctl start com.openmedialibrary.loginscript open "$BASE/openmedialibrary/static/html/load.html" else "$BASE/ctl" open fi else python install.py "$BASE" & open ../Resources/static/install.html fi