Skip to content
Snippets Groups Projects
Commit 1efcd84a authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #7 from ids1024/update-all

update-packages.sh improvements
parents ebe0a2ea 932de911
No related branches found
No related tags found
No related merge requests found
...@@ -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 [ ! "$COOK_QUIET" = "1" ]
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,15 +18,15 @@ do ...@@ -18,15 +18,15 @@ 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)."
else else
echo "$recipe: updating $oldver -> $newver..." echo "$recipe: updating $oldver -> $newver..."
./cook.sh $recipe dist ./cook.sh $recipe unstage untar dist
publish="${publish} $recipe" publish="${publish} $recipe"
fi fi
fi fi
......
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