]> git.proxmox.com Git - mirror_linux-firmware.git/commit
copy-firmware.sh: reset and consistently handle destdir
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 23 Sep 2024 11:09:08 +0000 (12:09 +0100)
committerMario Limonciello <superm1@gmail.com>
Thu, 10 Oct 2024 14:33:32 +0000 (14:33 +0000)
commita3446bc1a7bd4824177e5765ce7a5e7c6489a23a
tree790297eadedb254e613ee49d249fbd17fa9385cf
parente8f8537768aaa8d991477155ac00f7826457515e
copy-firmware.sh: reset and consistently handle destdir

Currently we don't reset/override the destdir variable, so we end up inheriting
whatever the caller's environment has for it. While it may work, it's not
particularly consistent (be that within the script or other tools) nor is it
obvious.

While in here, ensure we handle the variable with test -z/-n instead of varying
other constructs.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
copy-firmware.sh