ill try to make loop with 2 conditionals, x != 0 OR curl = success, curl module working fine, but script lose [[ x -eq 0 ]]
#!/bin/bash
set -x
x=8
while [[ $x -eq 0 ]] || [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://nexus_url/path/96."$x"/latest/version.sign)" != "200" ]]
do
((x--))
done
echo $x
when we try to use script like this
#!/bin/bash
set -x
x=8
while [[ $x -eq 0 ]]
do
((x--))
done
echo $x
its succesfully stop on x=0
url checking also work, but cycle become infinity when we try use it together and no one url checking was succesfull, i think problem is in || between conditions, how i can correctly use OR in bash conditions?