From d4fac0951866e9ecf09571fcae1276521b14b85b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 10 Mar 2011 19:16:21 +0100 Subject: [PATCH] fail, if source is not existing Signed-off-by: Nico Schottelius --- conf/type/__file/gencode | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/type/__file/gencode b/conf/type/__file/gencode index 1fb20bf9..5f386349 100755 --- a/conf/type/__file/gencode +++ b/conf/type/__file/gencode @@ -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