__acl: check if getfacl is available

This commit is contained in:
ander 2019-04-16 14:15:48 +03:00
parent e997e98a73
commit 2cde09648c
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
if ! command -v getfacl 2>/dev/null
then
echo 'getfacl not available' >&2
exit 1
fi
if [ -e "/$__object_id" ]
then
getfacl "/$__object_id" 2>/dev/null \