Fix problem when source (build) directory is not present
[hvlinux.git] / 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