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.*=".*"$'