mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 18:07:45 +01:00
11 lines
258 B
Bash
Executable File
11 lines
258 B
Bash
Executable File
#!/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 $1 ;;
|
|
*) echo "don't know how to compress '$1' in '$2'..." ;;
|
|
esac
|
|
else
|
|
echo "'$1' is not a valid file or directory!"
|
|
fi
|