documentserver_community
documentserver_community copied to clipboard
Unable to add multiple fonts with shell expansion
Trying to add multiple TTF fonts with the occ script:
php occ documentserver:fonts -a /path/to/my/TrueType/IBM-Plex-Sans/*.ttf
This fails with the following message:
Too many arguments, expected arguments "command".
I can add a single TTF font all right, but it's kind of tedious to do this for all IBM Plex fonts...
NC version 18.0.2, documentserver_community: 0.1.5.
Am I doing something wrong, or is it a bug?
Just have a look at this comment for bulk uploading fonts in #40
-- old Answer below:
No this doesn't seem to be implemented yet. What should work for now is a simple for loop which adds all fonts.
for font in /path/to/my/TrueType/IBM-Plex-Sans/*.ttf; do php occ documentserver:fonts -add $font; done
don't forget to run the php command as your webservers user to not mess up with your file ownerships.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!
Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.