diff options
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-x[-rw-r--r--] | extract-files.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/extract-files.sh b/extract-files.sh index c5e540e..78747c0 100644..100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -18,12 +18,6 @@ set -e -# Required! -export DEVICE=z2_plus -export VENDOR=zuk - -export DEVICE_BRINGUP_YEAR=2016 - # Load extract_utils and do some sanity checks MY_DIR="${BASH_SOURCE%/*}" if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi @@ -42,14 +36,13 @@ CLEAN_VENDOR=true while [ "$1" != "" ]; do case $1 in - -p | --path ) shift - SRC=$1 + -n | --no-cleanup ) CLEAN_VENDOR=false ;; -s | --section ) shift SECTION=$1 CLEAN_VENDOR=false ;; - -n | --no-cleanup ) CLEAN_VENDOR=false + * ) SRC=$1 ;; esac shift @@ -60,7 +53,7 @@ if [ -z "$SRC" ]; then fi # Initialize the helper for common device -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR" extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" |