X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/6208b3a77644afe5c7c28688cd6d7554a0281953..57172ffb316b5e681c4f515927894f5129739237:/utils/redis-sha1.rb diff --git a/utils/redis-sha1.rb b/utils/redis-sha1.rb index af9514b2..6f9e045b 100644 --- a/utils/redis-sha1.rb +++ b/utils/redis-sha1.rb @@ -29,7 +29,7 @@ def redisSha1(opts={}) sha1 end -host = (ARGV[0] or "127.0.0.1") -port = (ARGV[1] or "6379") +host = ARGV[0] || "127.0.0.1" +port = ARGV[1] || "6379" puts "Performing SHA1 of Redis server #{host} #{port}" p "Dataset SHA1: #{redisSha1(:host => host, :port => port.to_i)}"