forked from ungleich-public/cdist
wait for correct count of args in bin/cdist-dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
5d881f226a
commit
5957de201b
1 changed files with 3 additions and 3 deletions
|
@ -25,13 +25,13 @@
|
||||||
|
|
||||||
|
|
||||||
. cdist-config
|
. cdist-config
|
||||||
if [ $# -lt 3 ]; then
|
if [ $# -ne 4 ]; then
|
||||||
__cdist_usage "<target host> <push|pull> <src dir> <dst dir>"
|
__cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
|
||||||
fi
|
fi
|
||||||
set -ue
|
set -ue
|
||||||
|
|
||||||
__cdist_target_host="$1"; shift
|
|
||||||
__cdist_action="$1"; shift
|
__cdist_action="$1"; shift
|
||||||
|
__cdist_target_host="$1"; shift
|
||||||
|
|
||||||
__cdist_src_dir="$1"; shift
|
__cdist_src_dir="$1"; shift
|
||||||
__cdist_dst_dir="$1"; shift
|
__cdist_dst_dir="$1"; shift
|
||||||
|
|
Loading…
Reference in a new issue