From 3118f166f892a59cdae1dbe271c85d009b6e9746 Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 2 Oct 2020 18:59:21 +0900 Subject: [PATCH] [update] : Added comp-opts reset --- allarch.sh | 10 +++++++--- build.sh | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/allarch.sh b/allarch.sh index 5cf881e0..29d4b71b 100755 --- a/allarch.sh +++ b/allarch.sh @@ -225,8 +225,8 @@ _usage () { echo " Default: ${out_dir}" echo " -p | --password Set a live user password" echo " Default: ${password}" - echo " -t | --comp-opts Set compressor-specific options" - echo " Default: empty" + echo " -t | --comp-opts Set compressor-specific options. Specify \"reset\" to empty" + echo " Default: -Xcompression-level 20" echo " -u | --user Set user name" echo " Default: ${username}" echo " -w | --work Set the working directory" @@ -1385,7 +1385,11 @@ while :; do shift 1 ;; -t | --comp-opts) - sfs_comp_opt="${2}" + if [[ "${2}" = "reset" ]]; then + sfs_comp_opt="" + else + sfs_comp_opt="${2}" + fi shift 2 ;; -u | --user) diff --git a/build.sh b/build.sh index ee0bd87d..302e7672 100755 --- a/build.sh +++ b/build.sh @@ -224,8 +224,8 @@ _usage () { echo " Default: ${out_dir}" echo " -p | --password Set a live user password" echo " Default: ${password}" - echo " -t | --comp-opts Set compressor-specific options" - echo " Default: empty" + echo " -t | --comp-opts Set compressor-specific options. Specify \"reset\" to empty" + echo " Default: -Xcompression-level 20" echo " -u | --user Set user name" echo " Default: ${username}" echo " -w | --work Set the working directory" @@ -1456,7 +1456,11 @@ while :; do shift 1 ;; -t | --comp-opts) - sfs_comp_opt="${2}" + if [[ "${2}" = "reset" ]]; then + sfs_comp_opt="" + else + sfs_comp_opt="${2}" + fi shift 2 ;; -u | --user) -- 2.11.0