fix: Redirect output to stderr with log_error

This commit is contained in:
Carlos Álvaro
2021-02-26 07:39:56 +01:00
parent 2ac9a3c033
commit b51c818742

View File

@@ -19,7 +19,7 @@ function exec_as_salt()
# Log error # Log error
function log_error() function log_error()
{ {
(>2& echo "ERROR: $*") (>&2 echo "ERROR: $*")
} }
# Map salt user with host user # Map salt user with host user