mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22:56 +00:00
Added -q to get_sources for less chatty operation
This commit is contained in:
parent
1be27e11af
commit
4258078ef3
1 changed files with 7 additions and 1 deletions
|
@ -18,6 +18,7 @@ fi
|
|||
|
||||
#parse command line args
|
||||
BRANCH=''
|
||||
QUIET=''
|
||||
while (($# > 0))
|
||||
do
|
||||
case $1 in
|
||||
|
@ -31,6 +32,11 @@ do
|
|||
surl=$2
|
||||
shift 2
|
||||
;;
|
||||
-q)
|
||||
# Be less chatty
|
||||
QUIET='--silent'
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
@ -92,7 +98,7 @@ while read -r fsha fname ; do
|
|||
if [ ! -e "${fname}" ]; then
|
||||
for br in "${branches[@]}"
|
||||
do
|
||||
curl -f "${surl}/${pn}/${br}/${fsha}" -o "${fname}" && break
|
||||
curl ${QUIET} -f "${surl}/${pn}/${br}/${fsha}" -o "${fname}" && break
|
||||
done
|
||||
else
|
||||
echo "${fname} exists. skipping"
|
||||
|
|
Loading…
Add table
Reference in a new issue