From f0da4bc5fe6f9ffe3d0a5cbf9fca088aed61bcfc Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 21 Jan 2013 17:16:46 +0000 Subject: [PATCH] Soyons moderne ! Allons chasser de l'orcs ! --- src/alternc-passwd | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/alternc-passwd b/src/alternc-passwd index ddee972d..e7b2b506 100755 --- a/src/alternc-passwd +++ b/src/alternc-passwd @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # First check that we have a username as $1. If not, ask for the username if [ "$#" -eq 0 ] @@ -30,16 +30,10 @@ fi echo -n "Please enter the new password : " -oldmodes=`stty -g` -stty -echo -read PASS -stty $oldmodes +read -s PASS echo echo -n "Please confirm the new password : " -oldmodes=`stty -g` -stty -echo -read PASS2 -stty $oldmodes +read -s PASS2 echo if [ "$PASS" != "$PASS2" ] then