From 690ae7ce7cf33f7d20f87c85e7ccb631b6b4e22b Mon Sep 17 00:00:00 2001 From: udeved Date: Mon, 16 Feb 2015 22:25:35 +0100 Subject: [PATCH] [util-pkgtree] some cosmetics --- lib/util-pkgtree.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/util-pkgtree.sh b/lib/util-pkgtree.sh index 90d81f2..03ee6cc 100644 --- a/lib/util-pkgtree.sh +++ b/lib/util-pkgtree.sh @@ -14,15 +14,15 @@ sync_tree(){ for repo in ${repo_tree[@]};do if [[ -d packages-$repo ]];then cd packages-$repo - if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master |cut -f1)" ]; then - msg "$repo is up to date" + if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then + msg "[$repo] is up to date" else - msg "Syncing $repo ..." + msg "Syncing [$repo] ..." git pull origin master fi cd .. else - msg "Cloning $repo ..." + msg "Cloning [$repo] ..." git clone ${host_tree}/packages-$repo.git fi done @@ -33,10 +33,10 @@ sync_tree_abs(){ cd ${tree_dir}/abs if [[ -d packages ]];then cd packages - if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master |cut -f1)" ]; then - msg "abs is up to date" + if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then + msg "[abs] is up to date" else - msg "Syncing abs ..." + msg "Syncing [abs] ..." git pull origin master fi cd ..