dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 3ae5393f03bcf77b73eef10a2c11e398610dfec6
parent 5b6fda01f7247ea936d1bc1d3ec4444090f0be23
Author: Chris Noxz <chris@noxz.tech>
Date:   Sat,  9 Nov 2019 10:29:10 +0100

[bin] Fix number sort (n > 9) error in repo-graph

Diffstat:
Mbin/.bin/repo-graph | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/.bin/repo-graph b/bin/.bin/repo-graph @@ -66,7 +66,7 @@ main() { [ "$_LOG" = "" ] && printf '%s: got empty log, exiting...\n' "$0" && return _DATA=$(get_day_count) - _COUNTS=$(echo "$_DATA" | sed -e 's/:.*$//g' | sort) + _COUNTS=$(echo "$_DATA" | sed -e 's/:.*$//g' | sort -n) _CCOUNTS=$(echo "$_COUNTS" | wc -l) _Q1=$(echo $_COUNTS | cut -d ' ' -f $(((_CCOUNTS + 4 - 1) / 4))) _Q2=$(echo $_COUNTS | cut -d ' ' -f $(((_CCOUNTS + 2 - 1) / 2)))