Skip to content

Instantly share code, notes, and snippets.

@skull-squadron
Created March 13, 2012 22:50
Show Gist options
  • Save skull-squadron/2032395 to your computer and use it in GitHub Desktop.
Save skull-squadron/2032395 to your computer and use it in GitHub Desktop.
fix rvm permissions
#!/bin/sh
find ~/.rvm -type d -print0 | xargs -0L1 chmod 0755
find ~/.rvm -type f -print0 | xargs -0L1 chmod 0644
find ~/.rvm -type f -print0 | xargs -0L1 file | grep ' exec' | cut -d: -f1 | tee /dev/stderr | xargs -L1 chmod 0755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment