From 3ce07f707dc646831b5494f09e3e986985cfb641 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 17 Jan 2015 21:42:50 +0300 Subject: [PATCH] mc.menu: only archive files, not directories --- .mc/menu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.mc/menu b/.mc/menu index 95cf0cd..660f475 100644 --- a/.mc/menu +++ b/.mc/menu @@ -248,19 +248,19 @@ y Compress the current subdirectory to zip with recoded filenames echo ../"$zip".zip created. + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z bzip2 the file/directory +z bzip2 the file exec bzip2 -9 %f.bz2 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z gzip the file/directory +z gzip the file exec gzip -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z lzip the file/directory +z lzip the file exec lzip -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z lzma the file/directory +z lzma the file exec lzma -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ @@ -268,7 +268,7 @@ z 7z the file/directory exec 7z -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -z xz the file/directory +z xz the file exec xz -9 %f + ! f \.bz2$ & ! f \.gz$ & ! f \.lz$ & ! f \.lzma$ & ! f \.7z$ & ! f \.xz$ & ! f \.(zip|ZIP)$ -- 2.39.2