mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
Avoid annoying verbosity in update-packages.sh
This commit is contained in:
parent
16196f7479
commit
571455c972
6
cook.sh
6
cook.sh
@ -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
|
||||
|
||||
@ -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)."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user