Last active
August 2, 2016 10:32
-
-
Save etam/2471309928e9eab0e6ac62e9ae5e2100 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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