summaryrefslogtreecommitdiff
path: root/libre/parabolaweb-utils/parabolaweb-download
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-14 16:11:14 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-14 16:11:14 -0500
commit203be310b0810da95a73ee7d333f0da7c9a07acf (patch)
tree6dbe73c5ed546cad80112d43bdb8a4128c1da341 /libre/parabolaweb-utils/parabolaweb-download
parent7a75a6e8f80f8f75cf4b153da6f0ef8139019420 (diff)
update libre/parabolaweb-utils: make GITURL and GITREF configurable
Diffstat (limited to 'libre/parabolaweb-utils/parabolaweb-download')
-rw-r--r--libre/parabolaweb-utils/parabolaweb-download14
1 files changed, 7 insertions, 7 deletions
diff --git a/libre/parabolaweb-utils/parabolaweb-download b/libre/parabolaweb-utils/parabolaweb-download
index 823a18811..e124295d4 100644
--- a/libre/parabolaweb-utils/parabolaweb-download
+++ b/libre/parabolaweb-utils/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