You're right, it do exist. Seems I misread something. I just noticed in the "unifi.sh" script, the option is -printf instead of -print. My bad.
The command use printf which seems to not be correct in bsd. It should be print. Also the print option doesn't seem to behave the same. Which result in the process not changing the ownership. By using ls -ld with sed it work on both linux and bsd. I tested the pull request by manually editing the "unifi.sh" on my box and the fix this issue.
The command use printf which seems to not be correct in bsd. It should be print. Also the print option doesn't seem to behave the same. Which result in the process not changing the ownership. By using ls -ld with sed it work on both linux and bsd. I tested the pull request by manually editing the "unifi.sh" on my box and the fix this issue.