mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 09:52:46 +00:00
add PROJECT_API for
https://github.com/acmesh-official/acme.sh/issues/5170
This commit is contained in:
parent
9a0e15cced
commit
fe4113d623
2
acme.sh
2
acme.sh
@ -7075,7 +7075,7 @@ installOnline() {
|
|||||||
_getRepoHash() {
|
_getRepoHash() {
|
||||||
_hash_path=$1
|
_hash_path=$1
|
||||||
shift
|
shift
|
||||||
_hash_url="https://api.github.com/repos/acmesh-official/$PROJECT_NAME/git/refs/$_hash_path"
|
_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 | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user