From 939486b7bf3a3f38910f39509d7209fc83b3b075 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Thu, 3 Sep 2026 23:38:27 +0200 Subject: [PATCH] fc_install: Replace echo -e with portable printf for Mac for example Signed-off-by: Fini Jastrow --- fc_install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fc_install b/fc_install index e4197724d..9d31be065 100755 --- a/fc_install +++ b/fc_install @@ -389,22 +389,22 @@ gh.download_asset() { # -------------- msg.err() { - echo -e "${_BRed}ERROR:${_creset} $*" >&2 + printf "${_BRed}ERROR:${_creset} %s\n" "$*" >&2 return 0 } msg.warn() { - echo -e "${_BBlue}WARN:${_creset} $*" >&2 + printf "${_BBlue}WARN:${_creset} %s\n" "$*" >&2 return 0 } msg.info() { if [ "${VERBOSE}" -ge 1 ]; then - echo -e "${_BGreen}INFO:${_creset} $*" >&2 + printf "${_BGreen}INFO:${_creset} %s\n" "$*" >&2 fi return 0 } msg.debug() { if [ "${VERBOSE}" -ge 2 ]; then - echo -e "${_BYellow}DEBUG:${_creset} $*" >&2 + printf "${_BYellow}DEBUG:${_creset} %s\n" "$*" >&2 fi return 0 }