From db41b2dc81831b33942a460227a2d812284f3948 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 2 Mar 2024 16:38:57 -0500 Subject: [PATCH] Fixed typos in checks and improved consistency --- xfconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xfconf.sh b/xfconf.sh index 4e0b9e2..e3dc692 100755 --- a/xfconf.sh +++ b/xfconf.sh @@ -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