moved url to var for easier customization over time

This commit is contained in:
Pat Riehecky 2014-06-09 15:34:26 -05:00 committed by Karanbir Singh
parent 4d96e52f13
commit c19d26d752

View file

@ -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