Skip to content

Commit

Permalink
Merge pull request #430 from YAMLcase/accept-2xx-3xx-401-as-true
Browse files Browse the repository at this point in the history
Improvements to response code matchine
  • Loading branch information
guysoft authored Jun 1, 2022
2 parents 31f1d74 + 0a94d01 commit df8ed69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

while true
do
if [ $(curl -sL -w "%{http_code}\\n" "$(/home/pi/scripts/get_url)" -o /dev/null) == "200" ] || grep -q disabled "/boot/check_for_httpd" ; then
if [[ $(curl -sL -w "%{http_code}\\n" "$(/home/pi/scripts/get_url)" -o /dev/null) =~ ^([23][0-9]{2,2}|401)$ ]] || grep -q disabled "/boot/check_for_httpd" ; then
xdotool mousemove 9000 9000
%BROWSER_START_SCRIPT%
fi
Expand Down

0 comments on commit df8ed69

Please sign in to comment.