add timeout for _getRepoHash

https://github.com/acmesh-official/acme.sh/issues/5200
This commit is contained in:
neil committed 2024-07-14 13:50:35 +08:00
1 parent 60f7750d77
commit d81fc155cb
1 file changed
+1 -1
+1 -1
View File
@@ -7082,7 +7082,7 @@ _getRepoHash() {
_hash_path=$1
shift
_hash_url="${PROJECT_API:-https://api.github.com/repos/acmesh-official}/$PROJECT_NAME/git/refs/$_hash_path"
_get $_hash_url | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
_get "$_hash_url" "" 30 | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
}
_getUpgradeHash() {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.