extract_utils: Fix bad substitution for zsh

Change-Id: I5f4fabc62b1ac3da159b36c3ae6080e145948530
This commit is contained in:
XiNGRZ 2019-12-24 10:37:13 +08:00 committed by Luca Stefani
parent c83b8dae35
commit 4a2b65fb60

View file

@ -1190,7 +1190,7 @@ function oat2dex() {
local SRC="$3"
local TARGET=
local OAT=
local HOST="$(uname)"
local HOST="$(uname | tr '[:upper:]' '[:lower:]')"
if [ -z "$BAKSMALIJAR" ] || [ -z "$SMALIJAR" ]; then
export BAKSMALIJAR="$LINEAGE_ROOT"/prebuilts/tools-lineage/common/smali/baksmali.jar
@ -1198,11 +1198,11 @@ function oat2dex() {
fi
if [ -z "$VDEXEXTRACTOR" ]; then
export VDEXEXTRACTOR="$LINEAGE_ROOT"/prebuilts/tools-lineage/"${HOST,,}"-x86/bin/vdexExtractor
export VDEXEXTRACTOR="$LINEAGE_ROOT"/prebuilts/tools-lineage/{HOST}-x86/bin/vdexExtractor
fi
if [ -z "$CDEXCONVERTER" ]; then
export CDEXCONVERTER="$LINEAGE_ROOT"/prebuilts/tools-lineage/"${HOST,,}"-x86/bin/compact_dex_converter
export CDEXCONVERTER="$LINEAGE_ROOT"/prebuilts/tools-lineage/{HOST}-x86/bin/compact_dex_converter
fi
# Extract existing boot.oats to the temp folder