Always cd into BUILD_DIR even if custom function is provided
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 28 Dec 2014 05:40:41 +0000 (00:40 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 28 Dec 2014 19:55:37 +0000 (14:55 -0500)
functions/ipkg

index b30a2e7..2fd39eb 100644 (file)
@@ -79,7 +79,6 @@ hvconfig()
 # Default build function
 hvbuild()
 {
-    cd ${BUILD_DIR}
     ${HVMAKE}
     ${HVMAKE} install
 }
@@ -210,6 +209,7 @@ ipkg_script()
         hvconfig_post
     fi
 
+    cd ${BUILD_DIR}
     hvbuild
 
     # Execute post-build function if applicable