__acl: check if getfacl is available

This commit is contained in:
ander 2019-04-16 14:15:48 +03:00
parent e997e98a73
commit 2cde09648c

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 \