Add nameavability github name check timeout

This commit is contained in:
2022-04-06 08:39:55 +02:00
parent df7c7dc433
commit 6dd7e0084b
6 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ main() {
fi
done
github_availability=`curl -o /dev/null -s -w "%{http_code}" https://github.com/$name`
github_availability=`curl --connect-timeout 3 --retry 3 -o /dev/null -s -w "%{http_code}" https://github.com/$name`
if [ "$github_availability" == "200" ]; then
echo -e "\tGitHub: NOT available"
else