From e0be0bb7804442ceaaf535bffd1f79dfb3c63fb9 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Wed, 12 Jun 2024 21:50:42 +0200 Subject: [PATCH] bashtastig --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 5c58f76..3406ff4 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -650,7 +650,7 @@ flohmarkt_ynh_import_couchdb() { flohmarkt_ynh_delete_couchdb_user() { local couchdb_user_revision=$( flohmarkt_ynh_local_curl -n -m GET -u admin -p "$password_couchdb_admin" \ "http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}" | jq -r ._rev ) - if [[ -v ${couchdb_user_revision} ]] && [[ -n ${couchdb_user_revision} ]]; then + if [[ -v couchdb_user_revision ]] && [[ -n "${couchdb_user_revision}" ]]; then flohmarkt_ynh_local_curl -n -m DELETE -u admin -p ${password_couchdb_admin} -l '"ok":true' \ "http://127.0.0.1:5984/_users/org.couchdb.user%3A${app}?rev=${couchdb_user_revision}" else