From bbf1d0162a0a9140466db56b11a52877346560c3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Feb 2024 16:56:51 +0100 Subject: Avoid using shopt --- build-initramfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-initramfs.sh b/build-initramfs.sh index 5b5e9597..8bc8f2fa 100755 --- a/build-initramfs.sh +++ b/build-initramfs.sh @@ -123,9 +123,9 @@ bootstrap() { "${_ref[commit]}" # apply patches if any are required - shopt -s nullglob pushd "${_ref[path]}" || exit 1 for patch in "${_repo_dir}/patches/${_ref[path]##*/}/"*.patch; do + [ -s "$patch" ] || continue if ! patch -p1 < "$patch"; then echo "Applying '$patch' failed, expecting errors. Continuing..." fi -- cgit v1.2.3-55-g7522