From 7c2c846e3bdb50600061991de6449446887afb6a Mon Sep 17 00:00:00 2001 From: Ilya Mukhortov Date: Sun, 17 Aug 2025 11:14:15 +1000 Subject: [PATCH] fix --- bash_scripts/install-remd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_scripts/install-remd.sh b/bash_scripts/install-remd.sh index 20c5e1b..bd3fa35 100755 --- a/bash_scripts/install-remd.sh +++ b/bash_scripts/install-remd.sh @@ -5,7 +5,7 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor docker pull docker.med-logic.ru/medicine-remd:latest read -r -p "Create database? [y/N] " response -if [[ $prompt =~ [yY](es)* ]] +if [[ $response =~ ^[Yy](es)?$ ]]; then then docker exec medicine-stack-postgres psql -c 'CREATE DATABASE medicine_remd' --username=postgres fi