Make __cdist_exit_err write on stderr :-)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.0
Nico Schottelius 14 years ago
parent bb00bc93ef
commit b1c5012f3c
  1. 2
      bin/cdist-config
  2. 3
      bin/cdist-object-codegen
  3. 1
      conf/types/__file/gencode

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

@ -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

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

Loading…
Cancel
Save