You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're right, only on latest Debian (Bullseye) with finally the new mawk developer accepted, it supports [[:something:]] regex. Many thanks for reporting. I'll also print an extra line if the fallback URL is used, so that bugs or changes in latest download URL detection are recognised better and users encouraged to open an issue here.
PR up to fix it: #4106
I went through all cases of GitHub URL/version auto-detection and ruTorrent + Koel were affected as well. I aligned now the way we do this, to use mawk where possible and grep where required (only in case variables are used now, e.g. the system's architecture, since ^[[:blank:]]* is overkill when we check "tag_name": and "browser_download_url": ). And whenever a fallback URL or version is used, a related error message is printed, informing about the used fallback and asking for a report here, so that we can check and fix the repo URL or regex.
Required Information
Linux DietPi 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
Steps to reproduce
dietpi-software reinstall 183
Expected behaviour
Download and install bitwarden_rs/archive/1.19.0.tar.gz (latest at time of writing)
Actual behaviour
Download and install bitwarden_rs/archive/1.17.0.tar.gz (fallback version)
Extra info
If the relevant lines from software_id=183 install section of dietpi-software is executed in terminal:
$ INSTALL_URL_ADDRESS='https://api.github.com/repos/dani-garcia/bitwarden_rs/releases/latest'
$ curl -sSfL "$INSTALL_URL_ADDRESS" | mawk -F" '/^[[:blank:]]"tag_name":/{print $4;exit}'
$ curl -sSfL "$INSTALL_URL_ADDRESS" | grep -m1 '^[[:blank:]]"tag_name":' | cut -d " -f 4
1.19.0
It appears the mawk line is failing to detect the leading whitespace.
The text was updated successfully, but these errors were encountered: