]> Untitled Git - hvlinux.git/commitdiff
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 428dabc3326034deca1b4702ddbe85af581bfe8c..ca159bd5a706f7f7f0254959dc7f77743713cdc3 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