diff options
author | Malf Furious <m@lfurio.us> | 2017-09-05 03:43:46 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-09-05 03:43:46 -0400 |
commit | 739cb3e9c33d89c96f68529845faaba088748ce5 (patch) | |
tree | baca7f6098c02c6c926b7c522e0b866c7c9a676b | |
parent | a3c2400aa991734812fc20616e60b6b8f746204c (diff) | |
download | systrunk-739cb3e9c33d89c96f68529845faaba088748ce5.tar.gz systrunk-739cb3e9c33d89c96f68529845faaba088748ce5.zip |
Update systrunk status
Cleaned up text output.
-rw-r--r-- | repo-access.sh | 13 |
1 files 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 } |