mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
fwupdate: fix downloading when version is given
This commit is contained in:
parent
2f3d6bdc2c
commit
126800d48f
@ -119,7 +119,7 @@ function do_download() {
|
||||
version=$1
|
||||
|
||||
if ! [[ "$url" == http* ]]; then # a version was given
|
||||
url=$(show_versions true | sed -rn '/^'"$version"' http.*\.img\.[a-z]+$/ {; /.*\.xz$/ {;s/^'"$version"' (.*)/\1/ p;q;}; /.*\.gz$/ {;h;b finish;};}; :finish; $ {;x;s/^'"$version"' (.*)/\1/ p;}')
|
||||
url=$(show_versions true | jq -r ". | select(.version==\"$version\") | .url")
|
||||
else
|
||||
version="custom"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user