modernize multiple seqs and fix deprecated use of endCheckEmpty

This commit is contained in:
2022-12-12 16:42:25 +01:00
parent dbb8cac539
commit 7391de1ddd
18 changed files with 199 additions and 232 deletions

View File

@@ -209,15 +209,15 @@ step_22() {
readDatabaseInfos() {
if [ -z "$postgresDb" ] ; then
read -p "Enter postgres database name: " postgresDb
endCheckEmpty postgresDb "database"
endIfEmpty postgresDb "database"
fi
if [ -z "$postgresUser" ] ; then
read -p "Enter postgres user name: " postgresUser
endCheckEmpty postgresUser "user name"
endIfEmpty postgresUser "user name"
fi
if [ -z "$postgresPass" ] ; then
read -s -p "Enter postgres password: " postgresPass
endCheckEmpty postgresPass "password"
endIfEmpty postgresPass "password"
fi
info
}