mirror of
https://github.com/bytedream/scripts.git
synced 2026-11-04 14:32:09 +01:00
Add nameavability github name check timeout
This commit is contained in:
1 parent
df7c7dc433
commit
6dd7e0084b
6 files changed
+1
-1
No files matched your search
Regular → Executable
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
Executable → Regular
File mode changed.
@@ -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
|
||||
|
||||
Executable → Regular
File mode changed.
Reference in new issue
Block a user