fix: Remove race condition when testing target url
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a6d6e91ffa
commit
105bc71e9c
@ -64,8 +64,8 @@ data:
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
[ $(curl -kLs -w "%{http_code}" -o /dev/null https://$URL) != 200 ] && {
|
[[ $(getent hosts $URL) ]] || {
|
||||||
echo 'Could not connect to' $URL
|
echo 'Could not resolve' $URL
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user