diff options
author | Davide Garberi <dade.garberi@gmail.com> | 2019-09-02 23:04:41 +0200 |
---|---|---|
committer | Isaac Chen <tingyi364@gmail.com> | 2019-11-05 13:22:47 +0100 |
commit | 2e306cf191fa3613946242008003c7b66c21062e (patch) | |
tree | dffe8aa419039f4f86b65c355858d2de612769c2 /extract-files.sh | |
parent | e6f59ac6c0ae535842d1fc17082d8c97a298fb4c (diff) |
sdm660-common: extract-files: Fix CLEAN_VENDOR
* Due to the caps difference the vendor was being cleaned everytime that the extractor was run, even just with section
Change-Id: I2ba8f67bf1fa045f3059df660f36111d970592b4
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-x | extract-files.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extract-files.sh b/extract-files.sh index df252d3..d5c7409 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -34,7 +34,7 @@ fi . "$HELPER" # default to not sanitizing the vendor folder before extraction -clean_vendor=false +CLEAN_VENDOR=false while [ "$1" != "" ]; do case $1 in @@ -43,9 +43,9 @@ while [ "$1" != "" ]; do ;; -s | --section ) shift SECTION=$1 - clean_vendor=false + CLEAN_VENDOR=false ;; - -c | --clean-vendor ) clean_vendor=true + -c | --clean-vendor ) CLEAN_VENDOR=true ;; esac shift @@ -56,7 +56,7 @@ if [ -z "$SRC" ]; then fi # Initialize the common helper -setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true $clean_vendor +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true $CLEAN_VENDOR extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" |