From 1842fe950530b76857f1f0cb247fb6f7908b46ba Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Jun 10 2014 14:13:15 +0000 Subject: Added simple override file for altering top level vars. --- diff --git a/get_sources.sh b/get_sources.sh index 9df5a3b..24e507c 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -13,6 +13,12 @@ surl="https://git.centos.org/sources/" pn=$(basename `pwd`) f=.${pn}.metadata + +# for setting any overrides, such as surl or f +if [ -f /etc/centos-git-common ]; then + . /etc/centos-git-common +fi + if [ ! -e ${f} ] || [ ! -d .git ] || [ ! -d SOURCES ]; then echo 'You need to run this from inside a sources git repo' exit 1