From 217c6861e4f80bb89b6ef117335e53756bc6cefd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 30 Sep 2010 20:46:29 +0200 Subject: [PATCH] use parameters Signed-off-by: Nico Schottelius --- bin/cdist-preprocess | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/cdist-preprocess b/bin/cdist-preprocess index 0694adf1..53ed7d04 100755 --- a/bin/cdist-preprocess +++ b/bin/cdist-preprocess @@ -23,9 +23,10 @@ . cdist-config -set -e +[ $# -eq 1 ] || __cdist_usage "target" -cdist-build-explorer | ssh "$__cdist_intern_target_host" > "${CDIST_TMP}" +set -e +cdist-build-explorer | ssh "$1" > "${CDIST_TMP}" # FIXME: Warning: An untrusted/compromised client could in theory exploit us # And a filter function like grep '^__cdist_explore.*=".*"$'