use parameters

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-30 20:46:29 +02:00
parent 36522e2e39
commit 217c6861e4

View file

@ -23,9 +23,10 @@
. cdist-config . 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 # FIXME: Warning: An untrusted/compromised client could in theory exploit us
# And a filter function like grep '^__cdist_explore.*=".*"$' # And a filter function like grep '^__cdist_explore.*=".*"$'