From babd4d0e8c3dac864a4fc50425153653d9ae502b Mon Sep 17 00:00:00 2001 From: Andreas Zuber Date: Wed, 4 Sep 2013 18:23:09 +0200 Subject: make sure that what we get from the command line is a string --- bin/trocla | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/trocla b/bin/trocla index a4f51cc..dd32f84 100755 --- a/bin/trocla +++ b/bin/trocla @@ -55,8 +55,8 @@ end def set(options) if options.delete(:ask_password) require 'highline/import' - password = ask("Enter your password: ") { |q| q.echo = "x" } - pwd2 = ask("Repeat password: ") { |q| q.echo = "x" } + password = ask("Enter your password: ") { |q| q.echo = "x" }.to_s + pwd2 = ask("Repeat password: ") { |q| q.echo = "x" }.to_s unless password == pwd2 STDERR.puts "Passwords did not match, exiting!" exit 1 -- cgit v1.2.3