Skip to content

Instantly share code, notes, and snippets.

@lucsh
Created September 8, 2021 13:26
Show Gist options
  • Save lucsh/b147735fdf36fe98e12a5a80d1c3d6c1 to your computer and use it in GitHub Desktop.
Save lucsh/b147735fdf36fe98e12a5a80d1c3d6c1 to your computer and use it in GitHub Desktop.

Fix permissions

find copied-directory -type d -exec chmod 755 {} \;
find copied-directory -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

Delete node_ modules

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

Cambiar owner a mi

sudo chown -R $(whoami) .

Fix copied repo permissions

find Repos -type d -exec chmod 755 {} \;
find Repos -type f -exec chmod 644 {} \;
find /usr/local/share/zsh/site-functions -type d -exec chmod 755 {} \;
find /usr/local/share/zsh/site-functions -type f -exec chmod 644 {} \;
find /usr/local/share/zsh -type d -exec chmod 755 {} \;
find /usr/local/share/zsh -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment