From 2658092962001fbf7cf72d69fe03f761d61dd0a1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 27 Sep 2019 13:51:18 -0400 Subject: [PATCH] r: switch rb-all to git-rb-all --- .bin/r | 51 +++++---------------------------------------------- 1 file changed, 5 insertions(+), 46 deletions(-) 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 .'