fwupdate: add option to show URLs when listing versions

This commit is contained in:
Calin Crisan 2018-06-02 23:39:27 +03:00
parent 5f54ef54c3
commit 1e87d81b74

View File

@ -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)