wsl-fw: fix ((domains++)) kills while loop on first iteration Bash bug: ((0)) returns exit code 1 (false). Under set -e, this terminates the while read loop after processing the first domain. Fix: ((domains++)) → domains=1 ((ips++)) → ips=1 Other ((…++)) patterns in the script already had || true guards.
wsl-fw: fix ((domains++)) kills while loop on first iteration
Bash bug: ((0)) returns exit code 1 (false). Under set -e, this terminates the while read loop after processing the first domain.
Fix: ((domains++)) → domains=1 ((ips++)) → ips=1
Other ((…++)) patterns in the script already had || true guards.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
ScriptArc