Skip to content

Commit

Permalink
Update atom.sh to support the nightly channel
Browse files Browse the repository at this point in the history
  • Loading branch information
daviwil committed Jun 28, 2018
1 parent 9669a9b commit d54bb62
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ case $(basename $0) in
atom-beta)
CHANNEL=beta
;;
atom-nightly)
CHANNEL=nightly
;;
atom-dev)
CHANNEL=dev
;;
Expand Down Expand Up @@ -78,6 +81,8 @@ if [ $OS == 'Mac' ]; then

if [ "$CHANNEL" == 'beta' ]; then
ATOM_EXECUTABLE_NAME="Atom Beta"
elif [ "$CHANNEL" == 'nightly' ]; then
ATOM_EXECUTABLE_NAME="Atom Nightly"
else
ATOM_EXECUTABLE_NAME="Atom"
fi
Expand Down Expand Up @@ -114,6 +119,9 @@ elif [ $OS == 'Linux' ]; then
beta)
ATOM_PATH="$USR_DIRECTORY/share/atom-beta/atom"
;;
nightly)
ATOM_PATH="$USR_DIRECTORY/share/atom-nightly/atom"
;;
dev)
ATOM_PATH="$USR_DIRECTORY/share/atom-dev/atom"
;;
Expand Down

0 comments on commit d54bb62

Please sign in to comment.