From 739cb3e9c33d89c96f68529845faaba088748ce5 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Tue, 5 Sep 2017 03:43:46 -0400 Subject: Update systrunk status Cleaned up text output. --- repo-access.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/repo-access.sh b/repo-access.sh index 40be363..3e9fa8d 100644 --- a/repo-access.sh +++ b/repo-access.sh @@ -225,15 +225,16 @@ function systr_status if [[ "$BASE" == "NULL" ]]; then echo "BASE unset" else - echo "BASE at $BASE" + echo "BASE at $BASE {$updated}" fi - echo "Tree updated $updated" dist=$(systr_repo_commit_dist "$BASE" "$TRAC") - if [[ "$dist" == "0" ]]; then - echo "Up-to-date" - else - echo "Behind $dist commits" + if [[ "$TRAC" != "$traccommit" ]]; then + if [[ "$dist" == "0" ]]; then + echo "Up-to-date" + else + echo "Behind $dist commits" + fi fi } -- cgit v1.2.3