From 158e080d53717ad54381941cd85ed1f95b7f38f1 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 12 Nov 2023 14:51:19 +0100 Subject: [PATCH] tools: added script for compression --- .local/bin/tools/compress | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/bin/tools/compress diff --git a/.local/bin/tools/compress b/.local/bin/tools/compress new file mode 100755 index 0000000..94d9d93 --- /dev/null +++ b/.local/bin/tools/compress @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -e $1 ] ; then + case $2 in + 7z) 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on $1.7z ;; + *) echo "don't know how to compress '$1' in '$2'..." ;; + esac +else + echo "'$1' is not a valid file or directory!" +fi