From c13a652773151198d0913b543de3d2c0fc5f02b1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 4 Oct 2015 12:54:41 +0200 Subject: [PATCH] Monitor the commands executed --- doc/scripts/appbroker.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/scripts/appbroker.sh b/doc/scripts/appbroker.sh index 15107f9..e67b3d7 100755 --- a/doc/scripts/appbroker.sh +++ b/doc/scripts/appbroker.sh @@ -28,6 +28,7 @@ PROGNAME="appbroker.sh" #executables APPBROKER="AppBroker" +DEBUG="_debug" #functions @@ -37,7 +38,15 @@ _appbroker() target="$1" appinterface="$2" - $APPBROKER -o "$target" "$appinterface" + $DEBUG $APPBROKER -o "$target" "$appinterface" +} + + +#debug +_debug() +{ + echo "$@" 1>&2 + "$@" }