public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sdubby] epel10.2: awk separate inplace loader files
@ 2026-07-07  7:20 Morgan Lee
  0 siblings, 0 replies; only message in thread
From: Morgan Lee @ 2026-07-07  7:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sdubby
            Branch : epel10.2
            Commit : 432177aceda33ccc3c684757d6d64762bbccfb79
            Author : Morgan Lee <me@morgan.kr>
            Date   : 2023-09-20T15:21:53-05:00
            Stats  : +6/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/sdubby/c/432177aceda33ccc3c684757d6d64762bbccfb79?branch=epel10.2

            Log:
            awk separate inplace loader files

separate inplace of awk, for each loader file.

Tweaks: Jeremy Linton (slight whitespace/spelling tweaks)

---
diff --git a/updateloaderentries.sh b/updateloaderentries.sh
index c35dd4a..bc59c83 100755
--- a/updateloaderentries.sh
+++ b/updateloaderentries.sh
@@ -117,7 +117,12 @@ case "$utilmode" in
 	fi
 	;;
     merge)
-        /usr/bin/awk -i inplace "$FIXCMDLINE" /boot/efi/loader/entries/*
+	for i in /boot/efi/loader/entries/*; do
+	    if [[ -f "$i" ]]; then
+		/usr/bin/awk -i inplace "$FIXCMDLINE" "$i";
+	    fi
+	done
+        
         # just in case, relink if needed
         if ! [[ -e /sbin/installkernel ]]; then
 	    /usr/bin/ln -s /usr/bin/kernel-install /sbin/installkernel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-07  7:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07  7:20 [rpms/sdubby] epel10.2: awk separate inplace loader files Morgan Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox