__acl: fix removal in freebsd

This commit is contained in:
ander 2019-04-19 15:04:18 +03:00
parent 186ce77bb2
commit 108e46abee

View file

@ -99,10 +99,15 @@ then
then continue then continue
fi 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 "$setfacl_exec -x \"$remove\" \"$acl_path\""
echo "removed '$no_bits'" >> "$__messages_out" echo "removed '$remove'" >> "$__messages_out"
done done
fi fi
fi fi