From 01ef65fbaad1b0b936c8ad9e2a80f0024e4c9f82 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 16 Sep 2010 03:00:02 +0200 Subject: [PATCH] output ideas Signed-off-by: Nico Schottelius --- bin/cdist-explore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/cdist-explore b/bin/cdist-explore index 76f838ff..a624d53e 100755 --- a/bin/cdist-explore +++ b/bin/cdist-explore @@ -12,6 +12,8 @@ cdist_explore_os() } -# join those two if output needed -cdist_explore_os +# could work, if cdist_explore_os would be a different program +# nope, does not work, set -x output is not sourcable... +[ "$1" = "-o" ] && set -x + CDIST_OS="$(cdist_explore_os)"