mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
fwupdate: simplify support for other compression formats
This commit is contained in:
parent
8b13b0a18f
commit
53d3428912
@ -115,7 +115,7 @@ function do_download() {
|
|||||||
version=$1
|
version=$1
|
||||||
|
|
||||||
if ! [[ "$url" == http* ]]; then # a version was given
|
if ! [[ "$url" == http* ]]; then # a version was given
|
||||||
url=$(show_versions true | sed -rn '/^'"$1"' http.*\.img\.[a-z]+$/ {;/.*\.xz/ !{;h}; /.*\.xz/ {;s/^'"$1"' (.*)/\1/p;q;};}; $ {;x;s/^'"$1"' (.*)/\1/p;}')
|
url=$(show_versions true | sed -rn '/^'"$version"' http.*\.img\.[a-z]+$/ {; /.*\.xz$/ {;s/^'"$version"' (.*)/\1/ p;q;}; /.*\.gz$/ {;h;b;};}; $ {;x;s/^'"$version"' (.*)/\1/ p;}')
|
||||||
else
|
else
|
||||||
version="custom"
|
version="custom"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user