From f7116ca97f27b214152cfc2c21209ac36ba375e7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 13 Aug 2024 23:02:26 +0100 Subject: [PATCH] fix permissions bug --- lgsm/modules/check_permissions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/check_permissions.sh b/lgsm/modules/check_permissions.sh index 3ee404ba9..d2cd5890c 100644 --- a/lgsm/modules/check_permissions.sh +++ b/lgsm/modules/check_permissions.sh @@ -61,7 +61,7 @@ fn_check_permissions() { # Check modules files are executable. if [ -d "${modulesdir}" ]; then findnotexecutable="$(find "${modulesdir}" -type f -not -executable)" - findnotexecutablewc="$(echo "${findnotexecutable}" | wc -l)" + findnotexecutablewc="$(find "${modulesdir}" -type f -not -executable | wc -l)" if [ "${findnotexecutablewc}" -ne "0" ]; then fn_print_fail_nl "Permissions issues found" fn_script_log_fail "Permissions issues found"