diff options
author | Simon Rettberg | 2024-02-08 16:56:51 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-02-08 16:56:51 +0100 |
commit | bbf1d0162a0a9140466db56b11a52877346560c3 (patch) | |
tree | fa3353b2b1d1700d28db2229c6071b96c92e52ee | |
parent | Add slx_service helper function to add service-script to init (diff) | |
download | systemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.tar.gz systemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.tar.xz systemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.zip |
Avoid using shopt
-rwxr-xr-x | build-initramfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |