Soyons moderne ! Allons chasser de l'orcs !

This commit is contained in:
Alan Garcia 2013-01-21 17:16:46 +00:00
parent 39fd29359c
commit f0da4bc5fe
1 changed files with 3 additions and 9 deletions

View File

@ -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