[CentOS-devel] [PATCH 1/3] moved url to var for easier customization over time

Mon Jun 9 20:56:01 UTC 2014
Pat Riehecky <riehecky at fnal.gov>

From: Pat Riehecky <riehecky at fnal.gov>

---
 get_sources.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/get_sources.sh b/get_sources.sh
index 4cb6c5a..fad8828 100755
--- a/get_sources.sh
+++ b/get_sources.sh
@@ -9,6 +9,7 @@
 #
 # Might want to drop this in ~/bin/ and chmod u+x it
 
+surl="https://git.centos.org/sources/"
 
 pn=$(basename `pwd`)
 f=.${pn}.metadata
@@ -25,7 +26,7 @@ while read a ; do
     touch $fname
   else
     if [ ! -e ${fname} ]; then
-      curl https://git.centos.org/sources/${pn}/${br}/${fsha} -o ${fname}
+      curl ${surl}/${pn}/${br}/${fsha} -o ${fname}
     else
       echo "${fname} exists. skipping"
     fi
-- 
1.7.1