ref: 5b394a62d30b42d2a4d9d69a6187c34c4c540f64
parent: 371fdeaa75c62f4e151d3ff044490b36afdc3ec4
author: Natanael Copa <ncopa@alpinelinux.org>
date: Mon Mar 24 08:33:10 CDT 2014
mkinitfs: ignore empty lines and comments in feature files
--- a/mkinitfs.in
+++ b/mkinitfs.in
@@ -20,7 +20,7 @@
if [ ! -f "$features_dir/$f.$suffix" ]; then
continue
fi
- for glob in $(sed -e "s|^/*|$dir|" "$features_dir/$f.$suffix"); do
+ for glob in $(sed -e '/^$/d' -e '/^#/d' -e "s|^/*|$dir|" "$features_dir/$f.$suffix"); do
for file in $glob; do
if [ -d $file ]; then
find $file -type f