From 5957de201bfc39469a476a32cb948c2a914208d3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 23 Feb 2011 15:53:51 +0100 Subject: [PATCH] wait for correct count of args in bin/cdist-dir Signed-off-by: Nico Schottelius --- bin/cdist-dir | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cdist-dir b/bin/cdist-dir index 3c8433d3..7bdeb644 100755 --- a/bin/cdist-dir +++ b/bin/cdist-dir @@ -25,13 +25,13 @@ . cdist-config -if [ $# -lt 3 ]; then - __cdist_usage " " +if [ $# -ne 4 ]; then + __cdist_usage " " fi set -ue -__cdist_target_host="$1"; shift __cdist_action="$1"; shift +__cdist_target_host="$1"; shift __cdist_src_dir="$1"; shift __cdist_dst_dir="$1"; shift