Closed ydroneaud closed 2 years ago
This script has been used many times as is, without the third parameter.
I'm not sure why the script completely fails in your case.
Even if $3 is empty and the let k=$3
errors, then still $k should be empty and the next lines should set it to 0.
Can you give a bit more info on linux distro & shell used?
A workaround in your case would be to pass 0 as 3rd parameter.
It doesn't fail hopefully. Just report this error then keep going assuming k is 0. I'm using Ubuntu 21.04 (hirsute), with bash 5.1.4(1)-release
Ok, good to hear it actually does continue as it should. But error message should be fixed now as well.
I have this shell error during cpc.sh run:
It's in french, it's should translate to "let: k=: syntax error: operand expected (error token is "=")"
This happen because
$3
is empty.