out=$(env _proj=${proj} r rb all . 2>&1)
if [[ -n ${out} ]] ; then
while read line ; do
- if [[ ${line} == "# "* ]] ; then
+ case ${line} in
+ "Fast-forwarded "*) ;;
+ "# "*)
line="${line#[#] }"
printf '%s### %s%-40s%s: %s\n' \
"${BRACKET}" "${GOOD}" "${line%%:*}" "${NORMAL}" "${line#*:}"
- else
+ ;;
+ *)
printf '%s### %s%-40s%s: ERROR: %s\n' \
"${BRACKET}" "${BAD}" "${dir}" "${NORMAL}" "${line}"
- fi
+ ;;
+ esac
done < <(echo "${out}")
fi
_mj_child