Created
March 29, 2018 12:02
-
-
Save todd-a-jacobs/378358567b49647029b6cb28bb35f4d9 to your computer and use it in GitHub Desktop.
Use facter and jq to reliably grab the OS name regardless of platform.
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
facter --json os | jq .os.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment