We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038aaa5 commit 8d00abaCopy full SHA for 8d00aba
scripts/generate_dump
@@ -1098,7 +1098,7 @@ save_file() {
1098
fi
1099
1100
if $do_gzip; then
1101
- if [ ! -d "$path" ]; then
+ if [[ -f ${orig_path} ]]; then
1102
gz_path="${gz_path}.gz"
1103
tar_path="${tar_path}.gz"
1104
@@ -1117,6 +1117,12 @@ save_file() {
1117
tar -czvf "$gz_path" -C "$(dirname "$orig_path")" "$(basename "$orig_path")"
1118
1119
1120
+ else
1121
+ if $NOOP; then
1122
+ echo "cp $orig_path $gz_path"
1123
1124
+ cp $orig_path $gz_path
1125
+ fi
1126
1127
1128
if $do_tar_append; then
0 commit comments