mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-24 01:07:41 +00:00
maint(common): Convert quiet mode flags for 7z
This commit is contained in:
parent
af6faddd5d
commit
bf27e65d55
1 changed files with 7 additions and 1 deletions
|
|
@ -34,6 +34,13 @@ function zip_files() {
|
|||
SEVENZ_FLAGS+=($1)
|
||||
shift
|
||||
;;
|
||||
-q)
|
||||
# quiet mode -> disable progress indicator, set output log level 0
|
||||
ZIP_FLAGS+=($1)
|
||||
SEVENZ_FLAGS+=("-bd")
|
||||
SEVENZ_FLAGS+=("-bb0")
|
||||
shift
|
||||
;;
|
||||
-1)
|
||||
# Compression level where -1 indicates fastest compression speed
|
||||
ZIP_FLAGS+=($1)
|
||||
|
|
@ -60,7 +67,6 @@ function zip_files() {
|
|||
done
|
||||
|
||||
local COMPRESS_CMD=zip
|
||||
SEVENZ_CMD=
|
||||
if ! command -v zip 2>&1 > /dev/null; then
|
||||
# Fallback to 7z
|
||||
if [[ -z "${SEVENZ+x}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue