From 40b9034b502facf6b12f8f5f80941b0df693f682 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Thu, 30 Apr 2020 11:38:45 +0200 Subject: [PATCH] Solved shellcheck hints --- sd_setup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sd_setup.sh b/sd_setup.sh index 07af950..8cb3252 100644 --- a/sd_setup.sh +++ b/sd_setup.sh @@ -8,12 +8,12 @@ echo "@since 2017-03-12" echo # Define colors -red_color=`tput setaf 1` -green_color=`tput setaf 2` -yellow_color=`tput setaf 3` -blue_color=`tput setaf 4` -magenta_color=`tput setaf 5` -reset_color=`tput sgr0` +red_color=$(tput setaf 1) +green_color=$(tput setaf 2) +yellow_color=$(tput setaf 3) +blue_color=$(tput setaf 4) +magenta_color=$(tput setaf 5) +reset_color=$(tput sgr0) message(){ echo "$1[$2]:${reset_color} $3 ";