mirror of
https://github.com/prurigro/buildhosts.git
synced 2024-11-21 22:02:31 -05:00
Fix error to stderr
This commit is contained in:
parent
6d7176688e
commit
719a8e77a6
1 changed files with 2 additions and 2 deletions
|
@ -69,9 +69,9 @@ function buildhosts_help(){
|
||||||
|
|
||||||
# Error function: display error then exit unsuccessfully
|
# Error function: display error then exit unsuccessfully
|
||||||
function buildhosts_error() {
|
function buildhosts_error() {
|
||||||
printf "$c_heading $c_fail%s$c_fail %s$c_reset\n" ' ! ERROR:' "$1" 2>&1
|
printf "$c_heading $c_fail%s$c_fail %s$c_reset\n" ' ! ERROR:' "$1" >&2
|
||||||
[[ "$2" -eq 1 ]] && {
|
[[ "$2" -eq 1 ]] && {
|
||||||
printf '\n'
|
printf '\n' >&2
|
||||||
buildhosts_help
|
buildhosts_help
|
||||||
}
|
}
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue