mirror of
https://github.com/bytedream/scripts.git
synced 2026-05-06 11:07:31 +02:00
Add nameavability github name check timeout
This commit is contained in:
Regular → Executable
Executable → Regular
Executable → Regular
Executable → Regular
@@ -26,7 +26,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
if [ "$github_availability" == "200" ]; then
|
||||||
echo -e "\tGitHub: NOT available"
|
echo -e "\tGitHub: NOT available"
|
||||||
else
|
else
|
||||||
|
|||||||
Executable → Regular
Reference in New Issue
Block a user