Skip to content

Commit

Permalink
atom.sh: fix for renamed .app
Browse files Browse the repository at this point in the history
Needed because `node-gyp` doesn't work with a space in `Atom Beta.app`, and developers/others want to multiple versions of Atom side-by-side.
  • Loading branch information
Barry Allard authored Oct 21, 2016
1 parent 18609f8 commit b957b46
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,17 @@ if [ $EXPECT_OUTPUT ]; then
fi

if [ $OS == 'Mac' ]; then
ATOM_APP="$(dirname "$(dirname "$(dirname "$(dirname "$(readlink "$0")")")")")"
if [ "$ATOM_APP" == . ]; then
unset ATOM_APP
else
ATOM_PATH="$(dirname "$ATOM_APP")"
ATOM_APP_NAME="$(basename "$ATOM_APP")"
fi

if [ -n "$BETA_VERSION" ]; then
ATOM_APP_NAME="Atom Beta.app"
ATOM_EXECUTABLE_NAME="Atom Beta"
else
ATOM_APP_NAME="Atom.app"
ATOM_EXECUTABLE_NAME="Atom"
fi

Expand Down

0 comments on commit b957b46

Please sign in to comment.