From: Ian Campbell Subject: [PATCH OSSTEST] standalone: Log things we are running via with_logging Date: Thu, 3 Dec 2015 15:40:54 +0000 Message-ID: <1449157254-30830-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Turning on set -x is too verbose, so just echo the command ourselves. Signed-off-by: Ian Campbell --- standalone | 1 + 1 file changed, 1 insertion(+) diff --git a/standalone b/standalone index c804b74..6897400 100755 --- a/standalone +++ b/standalone @@ -195,6 +195,7 @@ with_logging() { if command -v savelog >/dev/null ; then savelog -c 300 -n "$log" >/dev/null fi + echo "+ $@" >&2 "$@" 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then -- 2.6.1