diff --git a/lgsm/functions/check_executable.sh b/lgsm/functions/check_executable.sh index a0a81aa4d..94337a26d 100644 --- a/lgsm/functions/check_executable.sh +++ b/lgsm/functions/check_executable.sh @@ -8,7 +8,7 @@ local commandname="CHECK" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" # Check if executable exists -if [ -f "${executabledir}/${execname}" ]; then +if [ ! -f "${executabledir}/${execname}" ]; then fn_script_log_warn "Expected executable not found: ${executabledir}/${execname}" if [ -d "${scriptlogdir}" ]; then fn_print_fail_nl "Executable ${execname} was not found"