Skip to content

Commit

Permalink
fix(hooks): reverted hooks file
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiller authored Jul 20, 2018
1 parent f4c1d66 commit 03ddec6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[ -n "$SOURCE_BRANCH" ] || SOURCE_BRANCH=$(git symbolic-ref -q --short HEAD)
[ -n "$SOURCE_BRANCH" ] || SOURCE_BRANCH=$(git symbolic-ref -q --short HEAD)

if $(git describe --exact-match --tags HEAD) "$ret" -eq 0 || [ $SOURCE_BRANCH = "master" ]; then
ANGULAR_MODE="prod"
if [[ $SOURCE_BRANCH = "prod" ]] || [[ $SOURCE_BRANCH == *.*.* ]] ; then
ANGULAR_MODE="prod"
else
ANGULAR_MODE="stage"
ANGULAR_MODE="stage"
fi

0 comments on commit 03ddec6

Please sign in to comment.