]> git-server-git.apps.pok.os.sepia.ceph.com Git - linux-firmware.git/commit
copy-firmware: make script smarter about bad parameters
authorTimur Tabi <ttabi@nvidia.com>
Mon, 17 Mar 2025 18:32:15 +0000 (13:32 -0500)
committerTimur Tabi <ttabi@nvidia.com>
Mon, 17 Mar 2025 22:45:37 +0000 (17:45 -0500)
commit142c0a71434fa86d41d36f4b6e4cbba43c29b631
tree9409d33b7d756e52e104019822f98155f86b5af5
parent07ffc2005a975030408cc836b19087e46fc24729
copy-firmware: make script smarter about bad parameters

Two improvements to copy-firmware.sh that make it more friendly
when passed unknown or not exactly correct command-line parameters.

1) Don't fail with a weird error if there's a space between -j and
   the number.

2) Ignore any command-line unsupported parameters that start with
   a dash.  This is necessary because otherwise the script will
   assume the option is actually a destination directory, and then
   the "test" command will get confused.  Drawback is that we don't
   support any more destination directories that start with a dash,
   but no one does that.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
copy-firmware.sh