From 93c62470b3ea79a33d181912a3341a82534cf849 Mon Sep 17 00:00:00 2001 From: barremian Date: Wed, 29 May 2024 10:48:44 +0200 Subject: [PATCH] lxc-forgejo: Expand unbound variables to empty strings to suppress 'unbound variable' errors --- install/forgejo-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/forgejo-install.sh b/install/forgejo-install.sh index 24576288..5f833e6c 100644 --- a/install/forgejo-install.sh +++ b/install/forgejo-install.sh @@ -115,7 +115,7 @@ else msg_ok "Database ${BL}SQLite${CL} will be used" fi -if [[ -n "$DB_CHOICE" ]]; then +if [[ -n "${DB_CHOICE:-}" ]]; then read -r -p "Would you like to add Adminer? " prompt if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then msg_info "Installing Adminer"