Skip to content
Snippets Groups Projects
Unverified Commit 571455c9 authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Avoid annoying verbosity in update-packages.sh

parent 16196f74
No related branches found
No related tags found
1 merge request!7update-packages.sh improvements
...@@ -33,7 +33,11 @@ function usage { ...@@ -33,7 +33,11 @@ function usage {
} }
function op { 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 case "$2" in
dist) dist)
op $1 fetch op $1 fetch
......
...@@ -18,9 +18,9 @@ do ...@@ -18,9 +18,9 @@ do
./cook.sh $recipe dist ./cook.sh $recipe dist
publish="${publish} $recipe" publish="${publish} $recipe"
else else
oldver=$(./cook.sh $recipe gitversion) oldver=$(COOK_QUIET=1 ./cook.sh $recipe gitversion)
./cook.sh $recipe fetch ./cook.sh $recipe fetch
newver=$(./cook.sh $recipe gitversion) newver=$(COOK_QUIET=1 ./cook.sh $recipe gitversion)
if [ "$oldver" = "$newver" ] if [ "$oldver" = "$newver" ]
then then
echo "$recipe: up to date (version $newver)." echo "$recipe: up to date (version $newver)."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment