make sure that what we get from the command line is a string
authorAndreas Zuber <zuber@puzzle.ch>
Wed, 4 Sep 2013 16:23:09 +0000 (18:23 +0200)
committerAndreas Zuber <zuber@puzzle.ch>
Wed, 4 Sep 2013 16:23:09 +0000 (18:23 +0200)
bin/trocla

index a4f51cc..dd32f84 100755 (executable)
@@ -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