dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 6c4a675f1adf58a67235ed49c4b946e95a4580fe
parent 82741e749a90637c7fd2b570595218b08f305cc8
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 18 Dec 2017 10:54:40 -0500

Improve output from t script

Diffstat:
Mlinks/bin/t-followers-diff.sh | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/links/bin/t-followers-diff.sh b/links/bin/t-followers-diff.sh @@ -39,5 +39,10 @@ t followers | \ #echo -e "${RED}< unfollowed ${GREEN}> new follower${NC}" colordiff $tmpfile{-old,} | sed 's/ / https:\/\/twitter.com\//' -echo -e -n "From ${RED}$(wc -l $tmpfile-old | awk '{ print $1 }')${NC} " -echo -e "to ${GREEN}$(wc -l $tmpfile | awk '{ print $1 }')${NC} followers" +nold="$(wc -l $tmpfile-old | awk '{ print $1 }')" +nnew="$(wc -l $tmpfile | awk '{ print $1 }')" +if [ "$nold" -eq "$nnew" ]; then + echo -e "No change in followers (${GREEN}$nnew${NC})" +else + echo -e "From ${RED}$nold${NC} to ${GREEN}$nnew${NC} followers" +fi