mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
fwupdate: fix bug where url missing when gz img is last line
This commit is contained in:
parent
53d3428912
commit
c295a5fe0f
@ -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 '/^'"$version"' http.*\.img\.[a-z]+$/ {; /.*\.xz$/ {;s/^'"$version"' (.*)/\1/ p;q;}; /.*\.gz$/ {;h;b;};}; $ {;x;s/^'"$version"' (.*)/\1/ p;}')
|
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;}')
|
||||||
else
|
else
|
||||||
version="custom"
|
version="custom"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user