aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsquashfu4
1 files changed, 2 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index b6c7cb2..cc56e34 100755
--- a/squashfu
+++ b/squashfu
@@ -172,8 +172,8 @@ run_rsync() {
# Gather includes and excludes from config file
# No error checking here -- user better not have
# effed up the config
- INCLUDES=($(grep ^#+ $CONFIG | cut -d+ -f2-))
- EXCLUDES=($(grep ^#- $CONFIG | cut -d- -f2-))
+ INCLUDES=($(sed -n '/^<<INCLUDES$/,/^INCLUDES$/p' $CONFIG | grep -vE "^<*INCLUDES$"))
+ EXCLUDES=($(sed -n '/^<<EXCLUDES$/,/^EXCLUDES$/p' $CONFIG | grep -vE "^<*EXCLUDES$"))
# rsync source to $BKUP_ROOT/rw
debug "Rsync executing with:"