logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: acf3fe802809565989305b71423f7b1ad130db85
parent a7e83e9c4ea5caedf921cb492a6d19b738e5d0df
Author: Andrius Štikonas <andrius@stikonas.eu>
Date:   Thu, 14 Jan 2021 19:43:52 +0000

Fix incorrect bash globbing.

Diffstat:

Mrootfs.sh8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/rootfs.sh b/rootfs.sh @@ -107,9 +107,11 @@ get_file() { else bname=$(basename "$url" ".tar.${ext}") fi - if [ -f "${bname}."* ]; then - cp "${bname}."* tmp/after - fi + for file in "${bname}."*; do + if [ -f "${file}" ]; then + cp "${file}" tmp/after + fi + done cp "../sources/$(basename "$url")" tmp/after }