Fix exclude list matching and document usage

This commit is contained in:
Codex
2026-03-16 16:33:04 +08:00
parent 3875d6701f
commit 51c8c37c69
3 changed files with 204 additions and 18 deletions
+2 -2
View File
@@ -316,10 +316,10 @@ pack() {
log "INFO" "开始打包(支持 exclude.list),pigz=${USE_PIGZ}"
if $USE_PIGZ; then
tar --warning=no-file-changed --exclude-ignore="$EXCLUDE_FILE" --exclude-from="$EXCLUDE_FILE" \
tar --warning=no-file-changed --exclude-from="$EXCLUDE_FILE" \
-c "${tar_args[@]}" | pigz > "$ARCHIVE_PATH"
else
tar --warning=no-file-changed --exclude-ignore="$EXCLUDE_FILE" --exclude-from="$EXCLUDE_FILE" \
tar --warning=no-file-changed --exclude-from="$EXCLUDE_FILE" \
-czf "$ARCHIVE_PATH" "${tar_args[@]}"
fi
local end; end=$(date +%s)