From 07b787b3479602ae6bfed81decd7ce7fe205ed1d Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sat, 30 Dec 2023 03:03:32 +0100 Subject: [PATCH] fix SC2290 --- scripts/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config b/scripts/config index 0024ec7..9afa657 100644 --- a/scripts/config +++ b/scripts/config @@ -30,7 +30,7 @@ install_dir=$(ynh_app_setting_get --app="$app" --key=install_dir) get__amount() { # Here we can imagine to have an API call to stripe to know the amount of donation during a month - local amount = 200 + local amount=200 # It's possible to change some properties of the question by overriding it: if [ "$amount" -gt 100 ] @@ -52,7 +52,7 @@ 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="$(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.