Created
May 23, 2015 15:54
-
-
Save shadowbq/e61be148eeeee8813bb7 to your computer and use it in GitHub Desktop.
find shebangs that are explict .. and likely wrong.
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
#!/usr/bin/env bash | |
# | |
# Find FreeBSD gems that are hardcoded to a ruby minor version | |
# example: /usr/local/bin/ruby20 | |
find /usr/local/bin/ -type f | xargs file | grep Ruby | awk 'BEGIN { FS = ":" }; { print $1 }' |xargs head -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment