mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
12 lines
438 B
Ruby
12 lines
438 B
Ruby
#
|
|
# Checks username, Ruby
|
|
# Module written by Brandon Arvanaghi
|
|
# Website: arvanaghi.com
|
|
# Twitter: @arvanaghi
|
|
#
|
|
|
|
if ENV["USERNAME"].downcase == ARGV.join(" ").downcase
|
|
puts "The user account running this script is " + ENV["USERNAME"].downcase + " as expected. Proceed!"
|
|
else
|
|
puts "The user account running this script is " + ENV["USERNAME"].downcase + ", not " + ARGV.join(" ").downcase + " as expected. Do not proceed."
|
|
end |