File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
2929 ODOO_ARGS+=(" --${param} " )
3030 ODOO_ARGS+=(" ${value} " )
3131
32- DB_ARGS+=(" ${pg_flag} " )
33- DB_ARGS+=(" ${value} " )
32+ # Only add to DB_ARGS if pg_flag is set
33+ if [[ -n " $pg_flag " ]]; then
34+ DB_ARGS+=(" ${pg_flag} " )
35+ DB_ARGS+=(" ${value} " )
36+ fi
3437}
3538
3639check_config " db_name" " $NAME " " -d"
3740check_config " db_host" " $HOST " " -h"
3841check_config " db_port" " $PORT " " -p"
3942check_config " db_user" " $USER " " -U"
40- # check_config "db_password" "$PASSWORD"
43+ check_config " db_password" " $PASSWORD "
4144
4245case " $1 " in
4346 -- | odoo)
Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
2929 ODOO_ARGS+=(" --${param} " )
3030 ODOO_ARGS+=(" ${value} " )
3131
32- DB_ARGS+=(" ${pg_flag} " )
33- DB_ARGS+=(" ${value} " )
32+ # Only add to DB_ARGS if pg_flag is set
33+ if [[ -n " $pg_flag " ]]; then
34+ DB_ARGS+=(" ${pg_flag} " )
35+ DB_ARGS+=(" ${value} " )
36+ fi
3437}
3538
3639check_config " db_name" " $NAME " " -d"
3740check_config " db_host" " $HOST " " -h"
3841check_config " db_port" " $PORT " " -p"
3942check_config " db_user" " $USER " " -U"
40- # check_config "db_password" "$PASSWORD"
43+ check_config " db_password" " $PASSWORD "
4144
4245case " $1 " in
4346 -- | odoo)
Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ function check_config() {
2929 ODOO_ARGS+=(" --${param} " )
3030 ODOO_ARGS+=(" ${value} " )
3131
32- DB_ARGS+=(" ${pg_flag} " )
33- DB_ARGS+=(" ${value} " )
32+ # Only add to DB_ARGS if pg_flag is set
33+ if [[ -n " $pg_flag " ]]; then
34+ DB_ARGS+=(" ${pg_flag} " )
35+ DB_ARGS+=(" ${value} " )
36+ fi
3437}
3538
3639check_config " db_name" " $NAME " " -d"
3740check_config " db_host" " $HOST " " -h"
3841check_config " db_port" " $PORT " " -p"
3942check_config " db_user" " $USER " " -U"
40- # check_config "db_password" "$PASSWORD"
43+ check_config " db_password" " $PASSWORD "
4144
4245case " $1 " in
4346 -- | odoo)
You can’t perform that action at this time.
0 commit comments