fix: Remove race condition when testing target url
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2023-07-16 11:46:17 +02:00
parent a6d6e91ffa
commit 105bc71e9c
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ data:
esac
done
[ $(curl -kLs -w "%{http_code}" -o /dev/null https://$URL) != 200 ] && {
echo 'Could not connect to' $URL
[[ $(getent hosts $URL) ]] || {
echo 'Could not resolve' $URL
exit 1
}