mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 20:25:12 +02:00
Add nameavability github name check timeout
This commit is contained in:
parent
df7c7dc433
commit
6dd7e0084b
0
globalize.sh
Normal file → Executable file
0
globalize.sh
Normal file → Executable file
0
hashify-filename/hashify-filename.sh
Executable file → Normal file
0
hashify-filename/hashify-filename.sh
Executable file → Normal file
0
java-beautifier/java-beautifier.py
Executable file → Normal file
0
java-beautifier/java-beautifier.py
Executable file → Normal file
0
merge-pdf/merge-pdf.sh
Executable file → Normal file
0
merge-pdf/merge-pdf.sh
Executable file → Normal file
@ -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
|
||||||
|
0
randomize-filename/randomize-filename.sh
Executable file → Normal file
0
randomize-filename/randomize-filename.sh
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user