fix permissions bug

This commit is contained in:
Daniel Gibbs 2024-08-13 23:02:26 +01:00
parent c8f36ff2af
commit f7116ca97f
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55

View File

@ -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"