Skip to content

Commit ff399f1

Browse files
committed
contrib/rootfs-builder: Use $(cat rootfs-files)
The previous $(< rootfs-files) is a Bashism that's not part of POSIX command substitution [1]. For Bash, the $(< ...) form is slightly faster (no need to exec cat), but not everyone uses Bash. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_03 Signed-off-by: W. Trevor King <[email protected]>
1 parent 3f64e51 commit ff399f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/rootfs-builder/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rootfs/%/bin/busybox: downloads/stage3-%-current.tar rootfs-files
1515
sudo rm -rf rootfs/$*
1616
sudo mkdir -p rootfs/$*
1717
sudo tar -xvf downloads/stage3-$*-current.tar -C rootfs/$* \
18-
--no-recursion --wildcards $$(< rootfs-files)
18+
--no-recursion --wildcards $$(cat rootfs-files)
1919
sudo touch $@
2020

2121
.PRECIOUS: rootfs/%/bin/echo

0 commit comments

Comments
 (0)