aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2011-08-01 21:26:59 -0400
committerJeff Bilyk <jbilyk@gmail.com>2011-08-01 21:26:59 -0400
commit4c9cba97d41e67c34f0b7511459c3b6a166c61dc (patch)
tree060abc999a6669a3eed9b9b6d4f786d113f44820
parent2e2fc6f1b9555ad7353a59246d048eec9b116e9b (diff)
downloadalpine-conf-4c9cba97d41e67c34f0b7511459c3b6a166c61dc.tar.bz2
alpine-conf-4c9cba97d41e67c34f0b7511459c3b6a166c61dc.tar.xz
lbu: strip empty lines from /etc/lbu/include and exclude files before committing
-rw-r--r--lbu.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbu.in b/lbu.in
index 70ce6b9..84997ff 100644
--- a/lbu.in
+++ b/lbu.in
@@ -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