I am doing a bash script with the web api of checkpoint.
126: No such file or directory
this error refers to line 25 in which I have the next sentence:
while [$reglas < $n_reglas ];do
I have tried changing that to:
while [$reglas -lt $n_reglas ];do
but the error persist and I am not sure of what is the real problem.
The variables are defined like this:
reglas=1
n_reglas=$(echo $rulebase_list | jq '.total')
and I have printed their value in order to check that they are taking the correct value. Any idea of which is the problem? Thanks!