mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22:56 +00:00
moved url to var for easier customization over time
This commit is contained in:
parent
4d96e52f13
commit
c19d26d752
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue