Fixed typos in checks and improved consistency

This commit is contained in:
Eric Renfro 2024-03-02 16:38:57 -05:00
parent 58494a756c
commit db41b2dc81
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -21,12 +21,12 @@ function showHelp {
}
function checks {
if [[ -r "${infile}" ]]
if [[ ! -r "${infile}" ]]
then
echo "File '$infile' not found."
exit 1
fi
if ! test -x "$( which "${thisDEconf}" )"
if [[ ! -x "$( which "${thisDEconf}" )" ]]
then
echo "Error: Cannot find ${thisDEconf}"
exit 2