[quote:25f76fda12="loveher"][code:1] while [ true ] ; do
echo ""
echo -en "\\033[0;32m"
stty -echo
echo -n ">>> Please input admin password : "
read PWD1
echo ""
echo -n ">>> Please input password again : "
read PWD2
echo ""
stty echo
if [ "$PWD1" = "$PWD2" ] ; then
_MAILPASSWD="$PWD2"
break
fi
echo -en "\\033[1;33m"
echo
echo -n ">>> Sorry the two password is NOT same . Try again? (Y/n)"
read ANS
case "$ANS" in
N|No|NO|Non|n|no|non)
echo "OK, exit setup. Bye."
exit 1
esac
done
[/code:1][/quote]
问题解决,谢谢!