mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers-2.1: Fix mysqlshow regex to list existing databases
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
parent
8f8070983d
commit
ec354d443d
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ ynh_mysql_user_exists() {
|
||||||
#
|
#
|
||||||
ynh_mysql_database_exists() {
|
ynh_mysql_database_exists() {
|
||||||
local database=$1
|
local database=$1
|
||||||
mysqlshow | grep -q "^| $database "
|
mysqlshow | grep -qE "^|\s+$database\s+|"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Drop a user
|
# Drop a user
|
||||||
|
|
Loading…
Add table
Reference in a new issue