mirror of
https://github.com/bytedream/scripts.git
synced 2025-12-14 23:12:06 +01:00
Add nameavability github name check timeout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user