Better error message when Atom.app is not found

Esse commit está contido em:
probablycorey
2013-04-17 16:25:03 -07:00
commit 599328cb9c
+5
Ver Arquivo
@@ -3,6 +3,11 @@ ATOM_PATH=/Applications/Atom.app
if [ ! -d $ATOM_PATH ]; then sleep 5; fi # Wait for Atom to reappear, Sparkle may be replacing it.
if [ ! -d $ATOM_PATH ]; then
echo "Atom Application not found at '$ATOM_PATH'" >&2
exit 1
fi
open -a $ATOM_PATH -n --args --executed-from="$(pwd)" --pid=$$ $@
# Used to exit process when atom is used as $EDITOR