Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-17 16:13:35 +01:00
parent b1c5012f3c
commit cae8f31923
2 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,10 @@ Do not believe anything written in cdist, besides what's written in this file
What you can do so far: (executed from top level directory)
The following code will get executed if you run this README:
The following code will get executed if you run this README,
I usually do it like this:
% rm -rf /tmp/localhost && ./HACKERS_README
eof

View file

@ -24,7 +24,7 @@
. cdist-config
[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
set -u
set -eu
export __cdist_target_host="$1"; shift
export __cdist_object_base_dir="$1"; shift
@ -54,6 +54,8 @@ if [ -x "$gencode" ]; then
eof
# Catch errors ourself now
set +e
"$gencode"; ret=$?
else