Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cfgnunes committed May 15, 2024
1 parent 4e2c181 commit 7bc7be0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Archive/Compress to 'tar.gz' (each)
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ _main_task() {
if [[ -d "$input_file" ]]; then
local files=""
cd -- "$input_file" || return 1
files=$(find . -mindepth 1 -maxdepth 1 | sed "s|^\./||g" | sort --version-sort)
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty tar -czf "$output_file" --)
files=$(find . -mindepth 1 -maxdepth 1 -printf "%p$FIELD_SEPARATOR" | sed "s|\./||g")
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty --delimiter="$FIELD_SEPARATOR" tar -czf "$output_file" --)
else
cd -- "$(_get_filename_dir "$input_file")" || return 1
local input_file_basename=""
Expand Down
4 changes: 2 additions & 2 deletions Archive/Compress to 'tar.xz' (each)
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ _main_task() {
if [[ -d "$input_file" ]]; then
local files=""
cd -- "$input_file" || return 1
files=$(find . -mindepth 1 -maxdepth 1 | sed "s|^\./||g" | sort --version-sort)
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty tar -cJf "$output_file" --)
files=$(find . -mindepth 1 -maxdepth 1 -printf "%p$FIELD_SEPARATOR" | sed "s|\./||g")
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty --delimiter="$FIELD_SEPARATOR" tar -cJf "$output_file" --)
else
cd -- "$(_get_filename_dir "$input_file")" || return 1
local input_file_basename=""
Expand Down
4 changes: 2 additions & 2 deletions Archive/Compress to 'tar.zst' (each)
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ _main_task() {
if [[ -d "$input_file" ]]; then
local files=""
cd -- "$input_file" || return 1
files=$(find . -mindepth 1 -maxdepth 1 | sed "s|^\./||g" | sort --version-sort)
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty tar --zstd -cf "$output_file" --)
files=$(find . -mindepth 1 -maxdepth 1 -printf "%p$FIELD_SEPARATOR" | sed "s|\./||g")
std_output=$(printf "%s" "$files" | xargs --no-run-if-empty --delimiter="$FIELD_SEPARATOR" tar --zstd -cf "$output_file" --)
else
cd -- "$(_get_filename_dir "$input_file")" || return 1
local input_file_basename=""
Expand Down

0 comments on commit 7bc7be0

Please sign in to comment.