mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +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 ####
|
||||
|
||||
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 download <version|url> (downloads a firmware version)"
|
||||
echo " fwupdate extract (extracts the downloaded firmware archive)"
|
||||
@ -394,7 +394,9 @@ function new_version() {
|
||||
|
||||
case "$1" in
|
||||
versions)
|
||||
show_versions
|
||||
show_url="false"
|
||||
test "$2" == "-u" && show_url="true"
|
||||
show_versions $show_url
|
||||
;;
|
||||
|
||||
current)
|
||||
|
Loading…
x
Reference in New Issue
Block a user