From: Mike Frysinger Date: Sat, 9 Jun 2012 05:42:01 +0000 (-0400) Subject: make pretend output easier to copy & paste X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=00220d986c37355ab62a008672c7190d4bc7cbc3;p=home.git make pretend output easier to copy & paste --- diff --git a/.bin/cros-board b/.bin/cros-board index 7bede69..c53b04e 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -34,8 +34,8 @@ done piperet() { set -- ${PIPESTATUS[@]/0}; [[ $# -eq 0 ]]; } run() { set +e - ebegin "$*" if ! ${ARG_PRETEND} ; then + ebegin "$*" local log="${IMAGES}"/log.${1##*/} if ${ARG_VERBOSE} ; then "$@" |& tee "${log}" @@ -43,8 +43,10 @@ run() { "$@" >& "${log}" fi piperet + eend $? || exit $? + else + einfo "$*" fi - eend $? || exit $? set -e }