[+] compress-7zst

This commit is contained in:
Azalea Gui
2024-08-07 17:03:29 -04:00
parent 343238a1b2
commit 44e574c7cf
+9
View File
@@ -132,6 +132,15 @@ has() {
command -v "$1" &> /dev/null
}
# Compress 7z zstd <out_file> <in_files...>
compress-7zst() {
if [ -z "$1" ]; then
echo "Usage: compress-7zst <out_file> <in_files...>"
return
fi
7z a -m0=zstd -mx17 -mmt35 "$1" "$2"
}
# Install using system package manager
install-package() {
if has pacman; then