From d38c164b56a315d94e2101ef9bd240209282618c Mon Sep 17 00:00:00 2001 From: Martin Kelly Date: Wed, 15 Mar 2017 15:15:58 -0700 Subject: 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 --- meta-rcar-gen2/scripts/setup_mm_packages.sh | 6 ++---- 1 file 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." -- cgit 1.2.3-korg