Fix problem when source (build) directory is not present
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 29 Dec 2014 04:20:32 +0000 (23:20 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 29 Dec 2014 16:24:31 +0000 (11:24 -0500)
functions/ipkg

index 428dabc..ca159bd 100644 (file)
@@ -214,7 +214,9 @@ ipkg_script()
         hvconfig_post
     fi
 
-    cd ${BUILD_DIR}
+    if [ -d ${BUILD_DIR} ]; then
+        cd ${BUILD_DIR}
+    fi
     hvbuild
 
     # Execute post-build function if applicable