die() needs to be defined in post-update hook

(and in one other place it needs to be defined earlier)

I never caught this because in my testing those error conditions --
caused by lack of afc3a06 -- never came up.
This commit is contained in:
Sitaram Chamarty 2011-06-19 06:54:52 +05:30
parent 1f768a1763
commit fda9f37b3a
2 changed files with 4 additions and 2 deletions

View file

@ -23,6 +23,8 @@ GL_FORKED_FROM="gl-forked-from"
# ------------------------------------------------------------------------------
die() { echo "$@"; exit 1; }
# test an option value more concisely
opt() {
[ "$1" = "1" ] && return 0
@ -39,8 +41,6 @@ valid_owned_repo() {
cd $GL_REPO_BASE_ABS
}
die() { echo "$@"; exit 1; }
# NOTE: this also sets $repo to the normalised (without .git suffix) reponame
get_rights_and_owner() {
local ans