Commit 4c9cba97 authored by Jeff Bilyk's avatar Jeff Bilyk

lbu: strip empty lines from /etc/lbu/include and exclude files before committing

parent 2e2fc6f1
......@@ -293,8 +293,8 @@ cmd_package() {
rm -f etc/lbu/packages.list
fi
# create tar archive
[ -f "$EXCLUDE_LIST" ] && excl="-X $EXCLUDE_LIST"
[ -f "$INCLUDE_LIST" ] && incl="-T $INCLUDE_LIST"
[ -f "$EXCLUDE_LIST" ] && sed '/^$/d' "$EXCLUDE_LIST" && excl="-X $EXCLUDE_LIST"
[ -f "$INCLUDE_LIST" ] && sed '/^$/d' "$INCLUDE_LIST" && incl="-T $INCLUDE_LIST"
if [ -n "$VERBOSE" ]; then
echo "Archiving the following files:" >&2
# we dont want to mess the tar output with the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment