From 332c6877b89c6dc9597dadf76ba1170748ae88d6 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 12 Jan 2021 11:01:25 -0500 Subject: [PATCH] [fix] Add extra arg to printf instead of using echo --- salt/common/tools/sbin/so-common | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/salt/common/tools/sbin/so-common b/salt/common/tools/sbin/so-common index b3b621a68..9fd4ef7dc 100755 --- a/salt/common/tools/sbin/so-common +++ b/salt/common/tools/sbin/so-common @@ -21,6 +21,9 @@ if [ "$(id -u)" -ne 0 ]; then exit 1 fi +# Define a banner to separate sections +banner="=========================================================================" + add_interface_bond0() { local BNIC=$1 if [[ -z $MTU ]]; then @@ -68,12 +71,8 @@ add_interface_bond0() { fi } -# Define a banner to separate sections -banner="=========================================================================" - header() { - echo - printf '%s\n' "$banner" "$*" "$banner" + printf '%s\n' "" "$banner" " $*" "$banner" } lookup_salt_value() {