You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My /user/pages has dirs and files in it with spaces in the name, which makes the suggested permissions-fixing shell script fail:
Say I have a ./user/pages/this has spaces/default.md:
chmod: cannot access ‘./user/pages/this’: No such file or directory
chmod: cannot access ‘has’: No such file or directory
chmod: cannot access ‘spaces/default.md’: No such file or directory
However, after some googling, I found this script to work for me:
find -exec is extremely slow but supports most systems. find . -print0 | xargs -0 is the right way but doesn't work in broken systems (aka OSX). My opinion is that using spaces in path, specially in a web directory, is a bad practice and the script is fine in its current form.
My /user/pages has dirs and files in it with spaces in the name, which makes the suggested permissions-fixing shell script fail:
Say I have a
./user/pages/this has spaces/default.md
:However, after some googling, I found this script to work for me:
I don't know enough about the subject matter to be sure this does the same thing as the suggested script, by I just thought it ought to be looked at.
The text was updated successfully, but these errors were encountered: