]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commit
copy-firmware.sh: warn if the destination folder is not empty
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 22 Sep 2024 16:00:01 +0000 (17:00 +0100)
committerMario Limonciello <superm1@gmail.com>
Thu, 10 Oct 2024 14:33:32 +0000 (14:33 +0000)
commit32f71d6d456e0a0cd89f9fa03c62d984f3afa05d
tree0d6a32d5682c07b194719fdc8f88e2b3cc40f720
parent97d200d75b94b1984760e0474c08be042d4d0d33
copy-firmware.sh: warn if the destination folder is not empty

If the user provides an existing non-empty folder (their /usr/lib/firmware/ or otherwise)
there is a high chance we'll silently overwrite existing files. That may or may not be what
they wanted, so throw a warning so highlight that.

v2:
 - use printf instead of echo

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