Deprecated-Unsupported/Atom Plugins Made/compress.sh

13 lines
244 B
Bash
Raw Normal View History

2021-02-18 23:45:52 +00:00
#!/bin/bash
function main() {
for i in `ls`; do
if [[ "${i}" == *".sh"* || "${i}" == *".txt" ]]; then
echo "Shell file";
else
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on "${i}".7z ./"${i}"
fi
done
}
main