Browse Source

Update check_permissions.sh

pull/820/merge
UltimateByte 9 years ago
parent
commit
296a75f224
  1. 3
      lgsm/functions/check_permissions.sh

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

Loading…
Cancel
Save