#!/bin/bash # Stop the Luminary local engine started by Luminary.app. # Double-clicking a .command file opens Terminal for as long as this runs. set -u APP="/Applications/Luminary.app" if [ ! -d "$APP" ]; then APP="$(cd "$(dirname "$0")" && pwd)/Luminary.app" fi if [ ! -d "$APP" ]; then echo "Luminary.app was not found in /Applications. Move it there and try again." read -r -p "Press Return to close this window." _ exit 1 fi "$APP/Contents/Resources/launcher.sh" --stop read -r -p "Press Return to close this window." _