Merge "Don't use unzip -t when unzip -l will do." am: a803d77648
Change-Id: Iff0917f55cf73803f2c381985ef445ce9f423bb7
This commit is contained in:
@@ -383,13 +383,13 @@ while [[ -n "$1" ]]; do
|
|||||||
if [[ $FIRST ]]; then
|
if [[ $FIRST ]]; then
|
||||||
FIRST=""
|
FIRST=""
|
||||||
|
|
||||||
if unzip -t "$SRC" | grep -qs "source.properties" ; then
|
if unzip -l "$SRC" | grep -qs "source.properties" ; then
|
||||||
# Extract Source Properties
|
# Extract Source Properties
|
||||||
# unzip: -j=flat (no dirs), -q=quiet, -o=overwrite, -d=dest dir
|
# unzip: -j=flat (no dirs), -q=quiet, -o=overwrite, -d=dest dir
|
||||||
unzip -j -q -o -d "$TMP_DIR" "$SRC" "*/source.properties"
|
unzip -j -q -o -d "$TMP_DIR" "$SRC" "*/source.properties"
|
||||||
PROPS="$TMP_DIR/source.properties"
|
PROPS="$TMP_DIR/source.properties"
|
||||||
|
|
||||||
elif unzip -t "$SRC" | grep -qs "manifest.ini" ; then
|
elif unzip -l "$SRC" | grep -qs "manifest.ini" ; then
|
||||||
unzip -j -q -o -d "$TMP_DIR" "$SRC" "*/manifest.ini"
|
unzip -j -q -o -d "$TMP_DIR" "$SRC" "*/manifest.ini"
|
||||||
PROPS="$TMP_DIR/manifest.ini"
|
PROPS="$TMP_DIR/manifest.ini"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user