[+] compress-7zst
This commit is contained in:
@@ -132,6 +132,15 @@ has() {
|
|||||||
command -v "$1" &> /dev/null
|
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 using system package manager
|
||||||
install-package() {
|
install-package() {
|
||||||
if has pacman; then
|
if has pacman; then
|
||||||
|
|||||||
Reference in New Issue
Block a user