title: Shell script programming : "bad number" error
body: <p>I am writing a simple shell script and I am having a strange error about "bad number". Here is my code :</p>
  
  <pre><code>status=0
  maxRetries=3
  retryCount=1
  while [[ status == 0 ]] || [[ retryCount -le  maxRetries ]]
  do
      ....
      retryCount=$((retryCount+1))
  done
  </code></pre>
  
  <p>As far as I see, I have properly declared maxRetries and retryCount as integers, so I don't see why it complains about bad number on the while statement. 
  Anyone have an idea?</p>