mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Remove >& and make it 2>&1
This commit is contained in:
@@ -26,12 +26,12 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.86 2000/02/16 21:25:59 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.87 2000/03/25 14:32:50 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
exit_nicely(){
|
exit_nicely(){
|
||||||
stty echo >& /dev/null
|
stty echo > /dev/null 2>&1
|
||||||
echo
|
echo
|
||||||
echo "$CMDNAME failed."
|
echo "$CMDNAME failed."
|
||||||
if [ "$noclean" -eq 0 ]; then
|
if [ "$noclean" -eq 0 ]; then
|
||||||
@@ -499,14 +499,14 @@ echo "REVOKE ALL on pg_shadow FROM public" \
|
|||||||
# set up password
|
# set up password
|
||||||
if [ "$PwPrompt" ]; then
|
if [ "$PwPrompt" ]; then
|
||||||
$ECHO_N "Enter new superuser password: "$ECHO_C
|
$ECHO_N "Enter new superuser password: "$ECHO_C
|
||||||
stty -echo >& /dev/null
|
stty -echo > /dev/null 2>&1
|
||||||
read FirstPw
|
read FirstPw
|
||||||
stty echo >& /dev/null
|
stty echo > /dev/null 2>&1
|
||||||
echo
|
echo
|
||||||
$ECHO_N "Enter it again: "$ECHO_C
|
$ECHO_N "Enter it again: "$ECHO_C
|
||||||
stty -echo >& /dev/null
|
stty -echo > /dev/null 2>&1
|
||||||
read SecondPw
|
read SecondPw
|
||||||
stty echo >& /dev/null
|
stty echo > /dev/null 2>&1
|
||||||
echo
|
echo
|
||||||
if [ "$FirstPw" != "$SecondPw" ]; then
|
if [ "$FirstPw" != "$SecondPw" ]; then
|
||||||
echo "Passwords didn't match."
|
echo "Passwords didn't match."
|
||||||
|
Reference in New Issue
Block a user