Skip to content

Commit d81fc15

Browse files
author
neil
committed
add timeout for _getRepoHash
#5200
1 parent 60f7750 commit d81fc15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7082,7 +7082,7 @@ _getRepoHash() {
70827082
_hash_path=$1
70837083
shift
70847084
_hash_url="${PROJECT_API:-https://api.github.com/repos/acmesh-official}/$PROJECT_NAME/git/refs/$_hash_path"
7085-
_get $_hash_url | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
7085+
_get "$_hash_url" "" 30 | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
70867086
}
70877087

70887088
_getUpgradeHash() {

0 commit comments

Comments
 (0)