meta-rcar: don't cd; just unzip 17/8817/2
authorMartin Kelly <mkelly@xevo.com>
Wed, 15 Mar 2017 21:58:00 +0000 (14:58 -0700)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 17 Mar 2017 19:33:05 +0000 (19:33 +0000)
This is slightly cleaner and better for handling failure cases.

Change-Id: I824308fc7c8ca8def86b7470a5226a6eff91f51c
Signed-off-by: Martin Kelly <mkelly@xevo.com>
meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh

index 83ccd50..bd82f4e 100644 (file)
@@ -12,10 +12,8 @@ function copy_mm_packages() {
         if [ ! -d $METADIR/binary-tmp ]; then
                 if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
                         mkdir $METADIR/binary-tmp
-                        cd $METADIR/binary-tmp
-                        unzip -o $DOWNLOAD_DIR/$ZIP_1
-                        unzip -o $DOWNLOAD_DIR/$ZIP_2
-                        cd -
+                        unzip -o $DOWNLOAD_DIR/$ZIP_1 -d $METADIR/binary-tmp
+                        unzip -o $DOWNLOAD_DIR/$ZIP_2 -d $METADIR/binary-tmp
                 else
                         echo -n "The graphics and multimedia acceleration packages for "
                         echo -e "the R-Car Gen3 board can be download from :"