Browse Source

Update check_permissions.sh

pull/820/merge
UltimateByte 9 years ago
parent
commit
8dd5528914
  1. 2
      lgsm/functions/check_permissions.sh

2
lgsm/functions/check_permissions.sh

@ -22,7 +22,7 @@ fi
fn_check_permissions(){
if [ -n "${functionsdir}" ]; then
find "${functionsdir}" -name "*.sh" | while read filename; do perm="$(stat -c %a "${filename}")"; shortperm="$(echo ${perm:0:1})";
find "${functionsdir}" -name "*.sh" | while read -r filename; do perm="$(stat -c %a "${filename}")"; shortperm="$(echo "${perm:0:1}")";
if [ "${shortperm}" != "7" ]; then
permissionerror="1"
echo "Found permission error on $filename"

Loading…
Cancel
Save