mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-29 06:27:46 +01:00
tools: added script for compression
This commit is contained in:
parent
17bc342b1f
commit
158e080d53
10
.local/bin/tools/compress
Executable file
10
.local/bin/tools/compress
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user