From 725e92e43455bc455a1b2913b907a173b622babe Mon Sep 17 00:00:00 2001 From: Pavel Egorov Date: Sat, 14 Jun 2025 20:50:03 +0300 Subject: [script] Fix compress for directories --- .local/bin/compress | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/compress b/.local/bin/compress index 4054008..83b3eb5 100755 --- a/.local/bin/compress +++ b/.local/bin/compress @@ -64,7 +64,7 @@ set tarball "$_flag_name.tar" set files $argv if contains $_flag_format $compressor_formats - if test (count $files) -gt 1 + if test (count $files) -gt 1 -o -d $files echo "Too many files, packing with tar first" >&2 create_tarball set _flag_name $tarball -- cgit v1.3