From 4258078ef32dafd675c81c835af91f6cc03feb27 Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Jun 25 2014 17:25:28 +0000 Subject: Added -q to get_sources for less chatty operation --- diff --git a/get_sources.sh b/get_sources.sh index 6451bd0..b43cb51 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -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"