aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsquashfu7
1 files changed, 1 insertions, 6 deletions
diff --git a/squashfu b/squashfu
index 9fb0960..866a203 100755
--- a/squashfu
+++ b/squashfu
@@ -78,13 +78,8 @@ create_new_incremental () {
return 1;
fi
- # Includes should be pulled in directly from config and not need doctoring
- #INCLUDES=($(sed -n '/^<<INCLUDES$/,/^INCLUDES$/p' $CONFIG | grep -vE "^<*INCLUDES$"))
- #EXCLUDES=($(sed -n '/^<<EXCLUDES$/,/^EXCLUDES$/p' $CONFIG | \
- # grep -vE "^<*EXCLUDES$" | \
- # sed -n 's/\(.*\)/--exclude \1/p'))
+ # Includes are pulled in directly from config
EXCLUDES=$(for excl in ${EXCLUDES[@]}; do echo --exclude $excl; done)
- exit 1
debug "rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} "$UNION_MOUNT""
/usr/bin/rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} "$UNION_MOUNT"