mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
minor check update hash for branch name
This commit is contained in:
parent
05aa26e619
commit
f716f6060e
6
acme.sh
6
acme.sh
@ -6315,7 +6315,11 @@ _installOnline() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getMasterHash() {
|
_getMasterHash() {
|
||||||
_hash_url="https://api.github.com/repos/Neilpang/acme.sh/git/refs/heads/master"
|
_b="$BRANCH"
|
||||||
|
if [ -z "$_b" ]; then
|
||||||
|
_b="master"
|
||||||
|
fi
|
||||||
|
_hash_url="https://api.github.com/repos/Neilpang/acme.sh/git/refs/heads/$_b"
|
||||||
_get $_hash_url | tr -d "\r\n" | tr '{},' '\n' | grep '"sha":' | cut -d '"' -f 4
|
_get $_hash_url | tr -d "\r\n" | tr '{},' '\n' | grep '"sha":' | cut -d '"' -f 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user