Merge pull request #408 from FledPaul/bug-fix

Uninitialized variable error in check_command function - Fixed
This commit is contained in:
Piero Toffanin 2023-02-25 02:10:03 -05:00 committed by GitHub
commit 17085741c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
run.sh
View file

@ -73,6 +73,9 @@ check_command(){
else 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" 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 fi
else
check_msg_prefix="Checking for $1... "
check_msg_result="\033[92m found\033[39m"
fi fi
echo -e "$check_msg_prefix $check_msg_result" echo -e "$check_msg_prefix $check_msg_result"