Created
August 2, 2011 17:46
-
-
Save jrgifford/1120752 to your computer and use it in GitHub Desktop.
Mwahahaha. Why not?
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
tmp_dir = '/tmp' | |
if ENV['OS'] =~ /Windows_NT/ | |
puts "This program is running under Windows NT/2000/XP!" | |
tmp_dir = ENV['TMP'] | |
elsif ENV['PATH'] =~ /\/usr/ | |
puts "This program has access to a UNIX-Style filesystem!" | |
else | |
puts "Gosh dangit, didn't the Governement tell you not to run strange programs on this X-43 Mark 2?!" | |
exit | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment