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