Make __cdist_exit_err write on stderr :-)

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

View file

@ -111,7 +111,7 @@ __cdist_debug_echo()
__cdist_exit_err()
{
echo "$@"
echo "$@" >&2
exit 1
}

View file

@ -19,12 +19,11 @@
#
#
# Generate code from one object (object must be relative path!)
# WARNING: OUTPUT ON STDOUT, ERRORS NEED TO BE ON STDERR!
#
. cdist-config
[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
set -u
export __cdist_target_host="$1"; shift

View file

@ -23,6 +23,7 @@
#
. cdist-config
set -e
type="$(cat type)"
mode="$(cat mode)"