From 296a75f2243d99c37998d051b81aa607400ccc2a Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Tue, 15 Mar 2016 08:42:02 +0100 Subject: [PATCH] Update check_permissions.sh --- lgsm/functions/check_permissions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lgsm/functions/check_permissions.sh b/lgsm/functions/check_permissions.sh index f9ba9d7ba..19689ab8b 100644 --- a/lgsm/functions/check_permissions.sh +++ b/lgsm/functions/check_permissions.sh @@ -22,8 +22,7 @@ fi fn_check_permissions(){ if [ -n "${functionsdir}" ]; then - for f in $(find "${functionsdir}" -name "*.sh"); do perm="$(stat -c %a "$f")"; - find "${functionsdir}" -name "*.sh" | while read filename; do perm="$(stat -c %a "${filename}")"; shortperm="$(echo ${perms:0:1})"; + find "${functionsdir}" -name "*.sh" | while read filename; do perm="$(stat -c %a "${filename}")"; shortperm="$(echo ${perms:0:1})"; if [ "${shortperm}" != "7" ]; then permissionerror="1" echo "Found permission error on $filename"