From: Mike Frysinger Date: Thu, 6 Sep 2012 17:05:06 +0000 (-0400) Subject: handle both verbose and non-verbose output X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=04aedbbd519ff58cfd0da35628f766b71096326c;p=home.git handle both verbose and non-verbose output --- diff --git a/.bin/r b/.bin/r index 08edfe2..bb754d1 100755 --- a/.bin/r +++ b/.bin/r @@ -33,9 +33,9 @@ rebase) if ($0 ~ "^[*] *[(]no branch[)]") { next } else if ($1 == "*") { - b = $NF + b = $2 } else { - list = list $NF " " + list = list $1 " " } } END { print list b }')