Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #77 from Arcanemagus/fix-sh-builds
Browse files Browse the repository at this point in the history
Support executing through sh
  • Loading branch information
smashwilson authored Aug 8, 2017
2 parents 4e5780b + 81cde22 commit 9b5325f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build-package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

ATOM_CHANNEL="${ATOM_CHANNEL:=stable}"

Expand Down Expand Up @@ -41,8 +41,8 @@ elif [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export APM_SCRIPT_PATH="${HOME}/atom/usr/bin/${APM_SCRIPT_NAME}"
export NPM_SCRIPT_PATH="${HOME}/atom/usr/share/${ATOM_SCRIPT_NAME}/resources/app/apm/node_modules/.bin/npm"
elif [ "${CIRCLECI}" = "true" ]; then
case "${OSTYPE}" in
linux*)
case "${CIRCLE_BUILD_IMAGE}" in
ubuntu*)
curl -s -L "https://atom.io/download/deb?channel=${ATOM_CHANNEL}" \
-H 'Accept: application/octet-stream' \
-o "atom-amd64.deb"
Expand All @@ -53,7 +53,7 @@ elif [ "${CIRCLECI}" = "true" ]; then
export APM_SCRIPT_PATH="apm"
export NPM_SCRIPT_PATH="/usr/share/atom/resources/app/apm/node_modules/.bin/npm"
;;
darwin*)
osx)
curl -s -L "https://atom.io/download/mac?channel=${ATOM_CHANNEL}" \
-H 'Accept: application/octet-stream' \
-o "atom.zip"
Expand All @@ -78,7 +78,7 @@ elif [ "${CIRCLECI}" = "true" ]; then
osascript -e 'tell application "System Events" to keystroke "x"'
;;
*)
echo "Unsupported CircleCI OS: ${OSTYPE}" >&2
echo "Unsupported CircleCI OS: ${CIRCLE_BUILD_IMAGE}" >&2
exit 1
;;
esac
Expand Down

0 comments on commit 9b5325f

Please sign in to comment.