From 359d31792db6702a069abeee51069950f8c920cf Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 24 Feb 2023 22:28:11 +0100 Subject: [PATCH] Uninitialized variable error in check_command function - Fixed --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index 818abcc..fd27547 100755 --- a/run.sh +++ b/run.sh @@ -73,6 +73,9 @@ check_command(){ else check_msg_result="\033[91m can't find $1! Check that the program is installed and that you have added the proper path to the program to your PATH environment variable before launching the program. If you change your PATH environment variable, remember to close and reopen your terminal. $2\033[39m" fi + else + check_msg_prefix="Checking for $1... " + check_msg_result="\033[92m found\033[39m" fi echo -e "$check_msg_prefix $check_msg_result"