1
0

add COPYFILE_DISABLE option

This commit is contained in:
2025-03-31 20:26:27 +02:00
parent 35a41eee57
commit fd9bc93cd2

View File

@@ -41,7 +41,7 @@ echo "Packaging untracked files..."
git ls-files --others --exclude-standard >"$TEMP_DIR/untracked_files.txt"
if [[ -s "$TEMP_DIR/untracked_files.txt" ]]; then
tar -czf "$TEMP_DIR/untracked.tar.gz" -T "$TEMP_DIR/untracked_files.txt"
COPYFILE_DISABLE=1 tar -czf "$TEMP_DIR/untracked.tar.gz" -T "$TEMP_DIR/untracked_files.txt"
echo "Untracked files packaged successfully."
else
echo "No untracked files found."
@@ -51,7 +51,7 @@ fi
# Allow custom archive name with default fallback
ARCHIVE_NAME=${1:-"changes_$(date +%Y%m%d_%H%M%S).tar.gz"}
echo "Creating final archive: $ARCHIVE_NAME"
tar -czf "$ARCHIVE_NAME" -C "$TEMP_DIR" changes.patch untracked.tar.gz
COPYFILE_DISABLE=1 tar -czf "$ARCHIVE_NAME" -C "$TEMP_DIR" changes.patch untracked.tar.gz
echo "Archive created successfully at: $REPO_DIR/$ARCHIVE_NAME"
echo ""