summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-03-15 15:15:58 -0700
committerMartin Kelly <mkelly@xevo.com>2017-03-16 15:16:05 -0700
commitd38c164b56a315d94e2101ef9bd240209282618c (patch)
tree3444cd0a98fef0b58d6852fb17074da8e2fea164
parente570e5470c9690e3240a05d3fd2cc0428cce2702 (diff)
meta-renesas: don't cd; just unzip
This is slightly cleaner and better for handling failure cases. If the script fails between two cd commands, the cwd is unchanged. Change-Id: Iba1eb9f1cb1571133af9341b25a3afd1f0ca77dc Signed-off-by: Martin Kelly <mkelly@xevo.com>
-rw-r--r--meta-rcar-gen2/scripts/setup_mm_packages.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta-rcar-gen2/scripts/setup_mm_packages.sh b/meta-rcar-gen2/scripts/setup_mm_packages.sh
index a2a87da..16c6ae3 100644
--- a/meta-rcar-gen2/scripts/setup_mm_packages.sh
+++ b/meta-rcar-gen2/scripts/setup_mm_packages.sh
@@ -20,10 +20,8 @@ function copy_mm_packages() {
if [ ! -d binary-tmp ]; then
if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
mkdir binary-tmp
- cd binary-tmp
- unzip -o $DOWNLOAD_DIR/$ZIP_1
- unzip -o $DOWNLOAD_DIR/$ZIP_2
- cd ..
+ unzip -o $DOWNLOAD_DIR/$ZIP_1 -d binary-tmp
+ unzip -o $DOWNLOAD_DIR/$ZIP_2 -d binary-tmp
else
echo -e
echo -e "ERROR: Missing Renesas proprietary software packages for Porter board."