forked from ungleich-public/cdist
fail, if source is not existing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f90d37d4bc
commit
d4fac09518
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ case "$type" in
|
|||
# Probably describe it in cdist-quickstart...
|
||||
scp "$source" "root@${__target_host}:${destination}"
|
||||
fi
|
||||
else
|
||||
echo "Source \"$source\" does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ no = "$(cat "$__object/explorer/exists")" ]; then
|
||||
|
|
Loading…
Reference in a new issue