add COPYFILE_DISABLE option
This commit is contained in:
@@ -41,7 +41,7 @@ echo "Packaging untracked files..."
|
|||||||
git ls-files --others --exclude-standard >"$TEMP_DIR/untracked_files.txt"
|
git ls-files --others --exclude-standard >"$TEMP_DIR/untracked_files.txt"
|
||||||
|
|
||||||
if [[ -s "$TEMP_DIR/untracked_files.txt" ]]; then
|
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."
|
echo "Untracked files packaged successfully."
|
||||||
else
|
else
|
||||||
echo "No untracked files found."
|
echo "No untracked files found."
|
||||||
@@ -51,7 +51,7 @@ fi
|
|||||||
# Allow custom archive name with default fallback
|
# Allow custom archive name with default fallback
|
||||||
ARCHIVE_NAME=${1:-"changes_$(date +%Y%m%d_%H%M%S).tar.gz"}
|
ARCHIVE_NAME=${1:-"changes_$(date +%Y%m%d_%H%M%S).tar.gz"}
|
||||||
echo "Creating final archive: $ARCHIVE_NAME"
|
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 "Archive created successfully at: $REPO_DIR/$ARCHIVE_NAME"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user