Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
JrGoodle committed Oct 19, 2020
1 parent 26c6f86 commit 712d85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions script/deploy
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env bash

# set -o xtrace

set -euo pipefail
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."

# shellcheck disable=SC1091
. 'script/utils.sh'

assert_git_branch 'master'
assert_git_clean
# FIXME: Get these asserts to work!
# assert_git_branch 'master'
# assert_git_clean

VERSION_FILE='clowder/__init__.py'
VERSION_MATCH_PATTERN="__version__ = '"
Expand Down
2 changes: 1 addition & 1 deletion script/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ assert_git_branch() {
exit_failure "Current branch: $(current_branch)"
fi
}
export -f assert_git_clean
export -f assert_git_branch

if [ -z ${PLATFORM+x} ]; then
case "$(uname)" in
Expand Down

0 comments on commit 712d85f

Please sign in to comment.