Skip to content

Instantly share code, notes, and snippets.

@MatiMax
Created July 27, 2017 12:15
Show Gist options
  • Save MatiMax/65374117a2774ca86fd122318d2c8493 to your computer and use it in GitHub Desktop.
Save MatiMax/65374117a2774ca86fd122318d2c8493 to your computer and use it in GitHub Desktop.
This fish-shell script modifies the permissions of the C-header files used by Swift to receive group and world read access.
#!/usr/bin/fish
set SWIFT_PATH /opt
sudo find $SWIFT_PATH/swift/ -name "*.h" ! -perm -go=r -exec chmod go+r "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment