Skip to content

Commit

Permalink
add timeout for _getRepoHash
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Jul 14, 2024
1 parent 60f7750 commit d81fc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d81fc15

Please sign in to comment.