Browse Source

Update check_permissions.sh

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

1
lgsm/functions/check_permissions.sh

@ -22,7 +22,6 @@ fi
fn_check_permissions(){ fn_check_permissions(){
if [ -n "${functionsdir}" ]; then 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 if [ "${shortperm}" != "7" ]; then
permissionerror="1" permissionerror="1"

Loading…
Cancel
Save