fix SC2155
This commit is contained in:
parent
07b787b347
commit
d99bc6f18a
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue