Skip to content

Commit

Permalink
Check appcenter token
Browse files Browse the repository at this point in the history
  • Loading branch information
vsafonkin committed Nov 6, 2019
1 parent 1103676 commit db78c3a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CalSmokeApp/bin/appcenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@ BUILD_RUN_LOOP: iff 1, then rebuild Calabash iOS gem before uploading.
exit 64
fi

CREDS=.appcenter-credentials
if [ -e "${CREDS}" ]; then
source "${CREDS}"
fi
APPCENTER_TOKEN=$("${HOME}/.calabash/find-keychain-credential.sh" api-token)

if [ "${APPCENTER_TOKEN}" = "" ]; then
APPCENTER_TOKEN=$("${HOME}/.calabash/find-keychain-credential.sh" api-token)
if [ ! -n "${APPCENTER_TOKEN}" ]; then
error "Failed to load appcenter token"
exit 1
fi

# The uninstall/install dance is required to test changes in
Expand Down

0 comments on commit db78c3a

Please sign in to comment.