summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-09-05 03:43:46 -0400
committerMalf Furious <m@lfurio.us>2017-09-05 03:43:46 -0400
commit739cb3e9c33d89c96f68529845faaba088748ce5 (patch)
treebaca7f6098c02c6c926b7c522e0b866c7c9a676b
parenta3c2400aa991734812fc20616e60b6b8f746204c (diff)
downloadsystrunk-739cb3e9c33d89c96f68529845faaba088748ce5.tar.gz
systrunk-739cb3e9c33d89c96f68529845faaba088748ce5.zip
Update systrunk status
Cleaned up text output.
-rw-r--r--repo-access.sh13
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
}