Merge pull request #89 from gragragrab/main

Fix for #88 (version capture)
This commit is contained in:
Elton Renda 2022-10-18 08:32:42 +02:00 committed by GitHub
commit 7c8c2dc8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ runcmd npm install --global yarn
# Get latest version information for nginx-proxy-manager # Get latest version information for nginx-proxy-manager
log "Checking for latest NPM release" log "Checking for latest NPM release"
runcmd 'wget $WGETOPT -O ./_latest_release $NPMURL/releases/latest' runcmd 'wget $WGETOPT -O ./_latest_release $NPMURL/releases/latest'
_latest_version=$(basename $(cat ./_latest_release | grep -wo "NginxProxyManager/.*.tar.gz") .tar.gz | cut -d'v' -f2) _latest_version=$(cat ./_latest_release | grep -Po '(?<=expanded_assets/v)[^"]+')
# Download nginx-proxy-manager source # Download nginx-proxy-manager source
log "Downloading NPM v$_latest_version" log "Downloading NPM v$_latest_version"