__acl: fix removal in freebsd

This commit is contained in:
ander 2019-04-19 15:04:18 +03:00
parent 186ce77bb2
commit 108e46abee
1 changed files with 8 additions and 3 deletions

View File

@ -99,10 +99,15 @@ then
then continue
fi
no_bits="$( echo "$acl" | sed 's/:...$//' )"
if echo "$os" | grep -Eq 'macosx|freebsd'
then
remove="$acl"
else
remove="$( echo "$acl" | sed 's/:...$//' )"
fi
echo "$setfacl_exec -x \"$no_bits\" \"$acl_path\""
echo "removed '$no_bits'" >> "$__messages_out"
echo "$setfacl_exec -x \"$remove\" \"$acl_path\""
echo "removed '$remove'" >> "$__messages_out"
done
fi
fi