diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-14 16:11:14 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-14 16:11:14 -0500 |
commit | c4124bfc9ffb7b6a6187620ef3d0e95bc763b8dc (patch) | |
tree | ab1298c8ed70e78a4239c8a0fa419f434a9d472f /parabolaweb-download | |
parent | b7c6c37081f1d1198b117cda1a0b7b9ec3f863f6 (diff) |
update libre/parabolaweb-utils: make GITURL and GITREF configurable
Diffstat (limited to 'parabolaweb-download')
-rw-r--r-- | parabolaweb-download | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/parabolaweb-download b/parabolaweb-download index 823a188..e124295 100644 --- a/parabolaweb-download +++ b/parabolaweb-download @@ -4,8 +4,8 @@ . /usr/bin/libremessages dir=$WEBDIR -repo=git://parabolagnulinux.org/parabolaweb.git -ref=master +repo=$GITURL +ref=$GITREF cd_safe() { if ! cd "$1"; then @@ -26,11 +26,11 @@ download_git() { else cd_safe "$dir" # Make sure we are fetching the right repo - # if [[ "$repo" != "$(git config --get remote.origin.url)" ]] ; then - # error "$(gettext "%s is not a clone of %s")" "$dir" "$repo" - # plain "$(gettext "Aborting...")" - # exit 1 - # fi + if [[ "$repo" != "$(git config --get remote.origin.url)" ]] ; then + error "$(gettext "%s is not a clone of %s")" "$dir" "$repo" + plain "$(gettext "Aborting...")" + exit 1 + fi msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" if ! git pull origin "$ref"; then # only warn on failure to allow offline builds |