# Line ~258
if (( $(echo "$reweight > 0" | bc -l 2>/dev/null || echo 0) )); then
Issue:
If bc is not installed, falls back to echo 0 which always evaluates to true
Should use bash arithmetic: if (( $(echo "$reweight > 0" | awk '{print ($1 > 0)}') ))
Or better: if [[ $(echo "$reweight > 0.0" | awk '{print ($1 > $3)}') == 1 ]]
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Line ~258
if (( $(echo "$reweight > 0" | bc -l 2>/dev/null || echo 0) )); then
Issue:
If bc is not installed, falls back to echo 0 which always evaluates to true
Should use bash arithmetic: if (( $(echo "$reweight > 0" | awk '{print ($1 > 0)}') ))
Or better: if $(echo "$reweight > 0.0"