Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
build script should return an error if amplitude key is missing for f…
Browse files Browse the repository at this point in the history
…orce releases
  • Loading branch information
nikhilsaraf committed Jan 26, 2021
1 parent 90c2e05 commit 047db94
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/build.sh
Expand Up @@ -213,13 +213,9 @@ then
then
if [ -z "$AMPLITUDE_API_KEY" ]
then
if [[ FORCE_RELEASE -eq 0 ]]
then
echo "error: define the AMPLITUDE_API_KEY environment variable before compiling"
exit 1
else
echo "force release option set so ignoring missing AMPLITUDE_API_KEY"
fi
# we want this to throw even if doing a force release because the code checks for the key when in release mode
echo "error: define the AMPLITUDE_API_KEY environment variable before compiling"
exit 1
fi
if ! [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[1-9]+)?$ ]]
then
Expand Down

0 comments on commit 047db94

Please sign in to comment.