summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-08 16:56:51 +0100
committerSimon Rettberg2024-02-08 16:56:51 +0100
commitbbf1d0162a0a9140466db56b11a52877346560c3 (patch)
treefa3353b2b1d1700d28db2229c6071b96c92e52ee
parentAdd slx_service helper function to add service-script to init (diff)
downloadsystemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.tar.gz
systemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.tar.xz
systemd-init-bbf1d0162a0a9140466db56b11a52877346560c3.zip
Avoid using shopt
-rwxr-xr-xbuild-initramfs.sh2
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