From d99bc6f18a3440a96ba8b6b4eff179de39d0ef73 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 30 Dec 2023 03:04:55 +0100 Subject: [PATCH] fix SC2155 --- scripts/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index 9afa657..07f0249 100644 --- a/scripts/config +++ b/scripts/config @@ -52,7 +52,8 @@ EOF } get__prices() { - local prices="$(grep "DONATION\['" "$install_dir/settings.py" | sed -r "s@^DONATION\['([^']*)'\]\['([^']*)'\] = '([^']*)'@\1/\2/\3@g" | sed -z 's/\n/,/g;s/,$/\n/')" + local prices + prices="$(grep "DONATION\['" "$install_dir/settings.py" | sed -r "s@^DONATION\['([^']*)'\]\['([^']*)'\] = '([^']*)'@\1/\2/\3@g" | sed -z 's/\n/,/g;s/,$/\n/')" if [ "$prices" == "," ]; then # Return YNH_NULL if you prefer to not return a value at all.