d/shuffle-binaries: Switch loop from for to while
authorElliott Mitchell <ehem+debian@m5p.com>
Fri, 17 Jul 2020 06:37:42 +0000 (23:37 -0700)
committerHans van Kranenburg <hans@knorrie.org>
Sun, 28 Feb 2021 18:53:12 +0000 (19:53 +0100)
We want to switch the interpreter from bash to sh, so we need to get rid
of the back ticks.

Signed-off-by: Elliott Mitchell <ehem+debian@m5p.com>
Acked-by: Hans van Kranenburg <hans@knorrie.org>
[Hans van Kranenburg]
Replaced explanation in the commit message.

debian/shuffle-binaries

index 3d951ed721c6a6f42389078ca28b91a640484aef..f50ffd2d7525fdf086c29375705ccf39659c0789 100755 (executable)
@@ -20,7 +20,7 @@ cd=/usr/lib/xen-common/bin
 
 mkdir -p "$t/$vd"
 
-for binary in `find $t/usr/{bin,sbin} -type f`; do
+find "$t"/usr/*bin -type f | while read binary; do
        # filter for executables (ignore scripts)
        file "$binary" | grep -q -eELF.\\+version.\\+interpreter || continue