Make __cdist_exit_err write on stderr :-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
bb00bc93ef
commit
b1c5012f3c
3 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ __cdist_debug_echo()
|
||||||
|
|
||||||
__cdist_exit_err()
|
__cdist_exit_err()
|
||||||
{
|
{
|
||||||
echo "$@"
|
echo "$@" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,11 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Generate code from one object (object must be relative path!)
|
# Generate code from one object (object must be relative path!)
|
||||||
|
# WARNING: OUTPUT ON STDOUT, ERRORS NEED TO BE ON STDERR!
|
||||||
#
|
#
|
||||||
|
|
||||||
. cdist-config
|
. cdist-config
|
||||||
|
|
||||||
[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
|
[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
|
||||||
|
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
export __cdist_target_host="$1"; shift
|
export __cdist_target_host="$1"; shift
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
. cdist-config
|
. cdist-config
|
||||||
|
set -e
|
||||||
|
|
||||||
type="$(cat type)"
|
type="$(cat type)"
|
||||||
mode="$(cat mode)"
|
mode="$(cat mode)"
|
||||||
|
|
Loading…
Reference in a new issue