fix SC2290
This commit is contained in:
parent
a9eca3e1d5
commit
07b787b347
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ install_dir=$(ynh_app_setting_get --app="$app" --key=install_dir)
|
||||||
|
|
||||||
get__amount() {
|
get__amount() {
|
||||||
# Here we can imagine to have an API call to stripe to know the amount of donation during a month
|
# 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:
|
# It's possible to change some properties of the question by overriding it:
|
||||||
if [ "$amount" -gt 100 ]
|
if [ "$amount" -gt 100 ]
|
||||||
|
@ -52,7 +52,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
get__prices() {
|
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" == "," ];
|
if [ "$prices" == "," ];
|
||||||
then
|
then
|
||||||
# Return YNH_NULL if you prefer to not return a value at all.
|
# Return YNH_NULL if you prefer to not return a value at all.
|
||||||
|
|
Loading…
Reference in a new issue