summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2013-09-04 13:13:36 -0700
committerduritong <peter.meier+github@immerda.ch>2013-09-04 13:13:36 -0700
commitdc6e72214d95243182bac4e47dea2504cf3015e6 (patch)
tree39dfda6d1210419f43e032609ed68d9a2f5a2760
parent385a09124a419a9d139f57b92952331e7536bb08 (diff)
parentbabd4d0e8c3dac864a4fc50425153653d9ae502b (diff)
Merge pull request #9 from ZeroPointEnergy/master
make sure that what we get from the command line is a string
-rwxr-xr-xbin/trocla4
1 files 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