fix ynh_psql_database_exists

This commit is contained in:
Kayou 2019-02-21 01:03:21 +01:00
parent 81bc9987bd
commit b1b14a399d
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -154,8 +154,8 @@ ynh_psql_user_exists() {
# | arg: -d, --database - the database for which to check existence # | arg: -d, --database - the database for which to check existence
ynh_psql_database_exists() { ynh_psql_database_exists() {
# Declare an array to define the options of this helper. # Declare an array to define the options of this helper.
local legacy_args=u local legacy_args=d
declare -Ar args_array=([u]=database=) declare -Ar args_array=([d]=database=)
local database local database
# Manage arguments with getopts # Manage arguments with getopts
ynh_handle_getopts_args "$@" ynh_handle_getopts_args "$@"