Browse code

Use -e to read

Which use readline for interactive read command (allow to do control-a/e
and such).

Change-Id: I143d6f14dd7e853197f2e30909d4f7b33262351a

Chmouel Boudjnah authored on 2011/11/22 19:13:56
Showing 1 changed files
... ...
@@ -214,7 +214,7 @@ function read_password {
214 214
         echo "It is probably best to avoid spaces and weird characters."
215 215
         echo "If you leave this blank, a random default value will be used."
216 216
         echo "Enter a password now:"
217
-        read $var
217
+        read -e $var
218 218
         pw=${!var}
219 219
         if [ ! $pw ]; then
220 220
             pw=`openssl rand -hex 10`