Skip to content

Instantly share code, notes, and snippets.

@etam
Last active August 2, 2016 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etam/2471309928e9eab0e6ac62e9ae5e2100 to your computer and use it in GitHub Desktop.
Save etam/2471309928e9eab0e6ac62e9ae5e2100 to your computer and use it in GitHub Desktop.
#!/bin/bash
(($# == 0)) \
&& set "."
find "$@" -type d -exec chmod 755 {} +
find "$@" -type f -exec chmod 644 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment