From: Mike Frysinger Date: Fri, 27 Sep 2019 17:51:18 +0000 (-0400) Subject: r: switch rb-all to git-rb-all X-Git-Url: https://git.wh0rd.org/?p=home.git;a=commitdiff_plain;h=2658092962001fbf7cf72d69fe03f761d61dd0a1 r: switch rb-all to git-rb-all --- diff --git a/.bin/r b/.bin/r index a969597..848378e 100755 --- a/.bin/r +++ b/.bin/r @@ -137,7 +137,7 @@ rebase) if [[ $1 == "all" ]] ; then shift if [[ $# -eq 0 ]] ; then - eval $(bash-colors --env | sed 's:^:export :') + eval "$(bash-colors --env | sed 's:^:export :')" root=$(repo_root) mj_init while read -a line ; do @@ -148,22 +148,10 @@ rebase) continue fi ( - out=$(env _proj=${proj} r rb all . 2>&1) + out=$(r rb all . 2>&1) if [[ -n ${out} ]] ; then - while read line ; do - case ${line} in - "Fast-forwarded "*) ;; - "# "*) - line="${line#[#] }" - printf '%s### %s%-40s%s: %s\n' \ - "${BRACKET}" "${GOOD}" "${line%%:*}" "${NORMAL}" "${line#*:}" - ;; - *) - printf '%s### %s%-40s%s: ERROR: %s\n' \ - "${BRACKET}" "${BAD}" "${dir}" "${NORMAL}" "${line}" - ;; - esac - done < <(echo "${out}") + head=$(printf "%-40s" "${proj}") + echo "${out}" | sed "s:^:${head} :" fi _mj_child ) & @@ -174,36 +162,7 @@ rebase) #exec r forall -p -c 'r rb all .'