From 00220d986c37355ab62a008672c7190d4bc7cbc3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 Jun 2012 01:42:01 -0400 Subject: [PATCH] make pretend output easier to copy & paste --- .bin/cros-board | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } -- 2.39.5