Browse Source

Compose _hash_url variable in function _getRepoHash() function from HASH_URL variable

master
Julien Escario 4 years ago
parent
commit
55f24a76fd
  1. 4
      acme.sh

4
acme.sh

@ -8,6 +8,8 @@ PROJECT_ENTRY="acme.sh"
PROJECT="https://github.com/acmesh-official/$PROJECT_NAME" PROJECT="https://github.com/acmesh-official/$PROJECT_NAME"
HASH_URL="https://api.github.com/repos/acmesh-official/$PROJECT_NAME/git/refs/"
DEFAULT_INSTALL_HOME="$HOME/.$PROJECT_NAME" DEFAULT_INSTALL_HOME="$HOME/.$PROJECT_NAME"
_WINDOWS_SCHEDULER_NAME="$PROJECT_NAME.cron" _WINDOWS_SCHEDULER_NAME="$PROJECT_NAME.cron"
@ -6379,7 +6381,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="$HASH_URL$_hash_path"
_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…
Cancel
Save