wait for correct count of args in bin/cdist-dir

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-23 15:53:51 +01:00
parent 5d881f226a
commit 5957de201b

View file

@ -25,13 +25,13 @@
. cdist-config
if [ $# -lt 3 ]; then
__cdist_usage "<target host> <push|pull> <src dir> <dst dir>"
if [ $# -ne 4 ]; then
__cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
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