Avoid annoying verbosity in update-packages.sh

This commit is contained in:
Ian Douglas Scott 2017-04-08 15:47:36 -07:00
parent 16196f7479
commit 571455c972
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959
2 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,11 @@ function usage {
}
function op {
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m" >&2
if [ -z $COOK_QUIET ]
then
echo -e "\033[01;38;5;215mcook - $1 $2\033[0m" >&2
fi
case "$2" in
dist)
op $1 fetch

View File

@ -18,9 +18,9 @@ do
./cook.sh $recipe dist
publish="${publish} $recipe"
else
oldver=$(./cook.sh $recipe gitversion)
oldver=$(COOK_QUIET=1 ./cook.sh $recipe gitversion)
./cook.sh $recipe fetch
newver=$(./cook.sh $recipe gitversion)
newver=$(COOK_QUIET=1 ./cook.sh $recipe gitversion)
if [ "$oldver" = "$newver" ]
then
echo "$recipe: up to date (version $newver)."