Skip to content

Instantly share code, notes, and snippets.

@dkrusky
Created March 12, 2016 05:54
Show Gist options
  • Save dkrusky/4f7673f8e7c54df62d7f to your computer and use it in GitHub Desktop.
Save dkrusky/4f7673f8e7c54df62d7f to your computer and use it in GitHub Desktop.
Bash file to correct web permissions. Accepts folder as a parameter, or in the absence, uses the current folder
#!/bin/sh
#mode=$1; shift
find "$@" -type f -exec chmod "0644" {} +
find "$@" -type d -exec chmod "0755" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment