Skip to content

Commit

Permalink
Fix save_file command in generate_dump
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZagury committed Dec 6, 2024
1 parent 652fc15 commit 8703265
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ save_file() {
fi

if $do_gzip; then
if [[ -f $tar_path ]]; then
if [[ -f ${orig_path} ]]; then
gz_path="${gz_path}.gz"
tar_path="${tar_path}.gz"

Expand All @@ -1117,6 +1117,12 @@ save_file() {
tar -czvf "$gz_path" -C "$(dirname "$orig_path")" "$(basename "$orig_path")"
fi
fi
else
if $NOOP; then
echo "cp $orig_path $gz_path"
else
cp $orig_path $gz_path
fi
fi

if $do_tar_append; then
Expand Down

0 comments on commit 8703265

Please # to comment.