mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-24 00:32:56 +00:00
Added simple override file for altering top level vars.
This commit is contained in:
parent
a4a7af33ae
commit
1842fe9505
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ surl="https://git.centos.org/sources/"
|
||||||
|
|
||||||
pn=$(basename `pwd`)
|
pn=$(basename `pwd`)
|
||||||
f=.${pn}.metadata
|
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
|
if [ ! -e ${f} ] || [ ! -d .git ] || [ ! -d SOURCES ]; then
|
||||||
echo 'You need to run this from inside a sources git repo'
|
echo 'You need to run this from inside a sources git repo'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue