Skip to content

Commit fe4113d

Browse files
author
neil
committed
add PROJECT_API for
#5170
1 parent 9a0e15c commit fe4113d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7075,7 +7075,7 @@ installOnline() {
70757075
_getRepoHash() {
70767076
_hash_path=$1
70777077
shift
7078-
_hash_url="https://api.github.com/repos/acmesh-official/$PROJECT_NAME/git/refs/$_hash_path"
7078+
_hash_url="${PROJECT_API:-https://api.github.com/repos/acmesh-official}/$PROJECT_NAME/git/refs/$_hash_path"
70797079
_get $_hash_url | tr -d "\r\n" | tr '{},' '\n\n\n' | grep '"sha":' | cut -d '"' -f 4
70807080
}
70817081

0 commit comments

Comments
 (0)