current commit
200426.5 · initial commit of ~/bin
#!/bin/sh

if [ "$1" = group ]; then
  find ./ -type f -print0 | xargs -0 chown $USER:users
  find ./ -type f -print0 | xargs -0 chmod 664
  find ./ -type d -print0 | xargs -0 chown $USER:users
  find ./ -type d -print0 | xargs -0 chmod 775
else
  find ./ -type f -print0 | xargs -0 chown $USER:users
  find ./ -type f -print0 | xargs -0 chmod 644
  find ./ -type d -print0 | xargs -0 chown $USER:users
  find ./ -type d -print0 | xargs -0 chmod 755
fi