From 478524b2bdd6d31eaa6345d4400f79b91160ee15 Mon Sep 17 00:00:00 2001 From: fly Date: Wed, 26 Aug 2020 10:24:53 +0000 Subject: [PATCH] Fix error with certain db names Signed-off-by: fly --- delete-db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delete-db b/delete-db index cb4e982..c613316 100755 --- a/delete-db +++ b/delete-db @@ -43,5 +43,5 @@ case $key in esac done -psql --dbname="postgres" -c "DROP DATABASE IF EXISTS $database" +psql --dbname="postgres" -c "DROP DATABASE IF EXISTS \"$database\"" sed -ri "s/^$key$//" .databases