__acl: we only care whether file is directory

This commit is contained in:
ander 2019-04-16 14:51:26 +03:00
parent ab954ffbcf
commit 2b5887bdbd
2 changed files with 5 additions and 6 deletions

View file

@ -23,7 +23,6 @@ acl_path="/$__object_id"
[ ! -e "$acl_path" ] && exit 0
if [ -d "$acl_path" ]
then echo d
elif [ -f "$acl_path" ]
then echo f
then echo 1
else echo 0
fi

View file

@ -24,7 +24,7 @@ acl_path="/$__object_id"
os="$( cat "$__global/explorer/os" )"
file_type="$( cat "$__object/explorer/file_type" )"
is_dir="$( cat "$__object/explorer/is_dir" )"
acl_is="$( cat "$__object/explorer/acl_is" )"
@ -38,7 +38,7 @@ do
echo "$parameter:$l"
if [ -f "$__object/parameter/default" ] \
&& [ "$file_type" = 'd' ]
&& [ "$is_dir" = '1' ]
then echo "default:$parameter:$l"
fi
done < "$__object/parameter/$parameter"
@ -50,7 +50,7 @@ then
echo "mask::$l"
if [ -f "$__object/parameter/default" ] \
&& [ "$file_type" = 'd' ]
&& [ "$is_dir" = '1' ]
then echo "default:mask::$l"
fi
fi