Skip to content

Commit

Permalink
add PROJECT_API for
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Jun 17, 2024
1 parent 9a0e15c commit fe4113d
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 @@ -7075,7 +7075,7 @@ installOnline() {
_getRepoHash() {
_hash_path=$1
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
}

Expand Down

0 comments on commit fe4113d

Please sign in to comment.