Soyons moderne ! Allons chasser de l'orcs !
This commit is contained in:
parent
39fd29359c
commit
f0da4bc5fe
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# First check that we have a username as $1. If not, ask for the username
|
# First check that we have a username as $1. If not, ask for the username
|
||||||
if [ "$#" -eq 0 ]
|
if [ "$#" -eq 0 ]
|
||||||
|
@ -30,16 +30,10 @@ fi
|
||||||
|
|
||||||
|
|
||||||
echo -n "Please enter the new password : "
|
echo -n "Please enter the new password : "
|
||||||
oldmodes=`stty -g`
|
read -s PASS
|
||||||
stty -echo
|
|
||||||
read PASS
|
|
||||||
stty $oldmodes
|
|
||||||
echo
|
echo
|
||||||
echo -n "Please confirm the new password : "
|
echo -n "Please confirm the new password : "
|
||||||
oldmodes=`stty -g`
|
read -s PASS2
|
||||||
stty -echo
|
|
||||||
read PASS2
|
|
||||||
stty $oldmodes
|
|
||||||
echo
|
echo
|
||||||
if [ "$PASS" != "$PASS2" ]
|
if [ "$PASS" != "$PASS2" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue