mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
fwupdate: add option to show URLs when listing versions
This commit is contained in:
parent
5f54ef54c3
commit
1e87d81b74
@ -4,7 +4,7 @@
|
|||||||
#### usage ####
|
#### usage ####
|
||||||
|
|
||||||
function exit_usage() {
|
function exit_usage() {
|
||||||
echo "Usage: fwupdate versions (lists available versions)"
|
echo "Usage: fwupdate versions [-u] (lists available versions, optionally showing the URL)"
|
||||||
echo " fwupdate current (shows the current version"
|
echo " fwupdate current (shows the current version"
|
||||||
echo " fwupdate download <version|url> (downloads a firmware version)"
|
echo " fwupdate download <version|url> (downloads a firmware version)"
|
||||||
echo " fwupdate extract (extracts the downloaded firmware archive)"
|
echo " fwupdate extract (extracts the downloaded firmware archive)"
|
||||||
@ -394,7 +394,9 @@ function new_version() {
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
versions)
|
versions)
|
||||||
show_versions
|
show_url="false"
|
||||||
|
test "$2" == "-u" && show_url="true"
|
||||||
|
show_versions $show_url
|
||||||
;;
|
;;
|
||||||
|
|
||||||
current)
|
current)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user