From 84d954816e0d8e3cd4d7edab759b65bc1116307c Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 20 Jul 2023 22:14:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20(flatpak-sync)=20Solve=20some=20?= =?UTF-8?q?shellcheck=20warnings/errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flatpak-sync/flatpak-sync.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flatpak-sync/flatpak-sync.sh b/flatpak-sync/flatpak-sync.sh index 4b7de69..4a85444 100755 --- a/flatpak-sync/flatpak-sync.sh +++ b/flatpak-sync/flatpak-sync.sh @@ -16,11 +16,13 @@ ERR_COLOR="\033[1;31m" NO_COLOR="\033[0m" function info() { - printf "$APP_COLOR[$APP_NAME] $INFO_COLOR$1$NO_COLOR\n" + # shellcheck disable=SC2059 + printf "${APP_COLOR}[$APP_NAME] $INFO_COLOR%s$NO_COLOR\n" "$1" } function error() { - printf "$APP_COLOR[$APP_NAME] $ERR_COLOR$1$NO_COLOR\n" + # shellcheck disable=SC2059 + printf "${APP_COLOR}[$APP_NAME] $ERR_COLOR%s$NO_COLOR\n" "$1" } function usage() {