diff --git a/backends/arm/scripts/pre-push b/backends/arm/scripts/pre-push index b755f2bcc48..804abbe26a4 100755 --- a/backends/arm/scripts/pre-push +++ b/backends/arm/scripts/pre-push @@ -8,11 +8,13 @@ # non-interactive mode. "$#" gives the number of positional arguments. [ "$#" -eq 0 ] && is_script_interactive=1 || is_script_interactive=0 -RESET='\e[0m' -RED='\e[31m' -GREEN='\e[32m' -YELLOW='\e[33m' -BLUE='\e[34m' +if [ $is_script_interactive -eq 1 ]; then + RESET='\e[0m' + RED='\e[31m' + GREEN='\e[32m' + YELLOW='\e[33m' + BLUE='\e[34m' +fi INFO="${BLUE}[INFO]${RESET}" WARNING="${YELLOW}[WARNING]${RESET}"