mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
255 B
11 lines
255 B
1 year ago
|
#!/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
|