diff --git a/scripts/build.sh b/scripts/build.sh
index 99060fb8bd10c68ac5bb88d38a0e238c14c34b2c..f2d70a039092984f13914ba72eb400da2e29edc6 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -19,8 +19,10 @@ if [ -d ${REPO_NAME} ];
 then
     cd ${REPO_NAME}
     git reset --hard 
+    git submodule update
 else
     git clone ${REPO_URL} ${REPO_NAME}
+    git submodule update
     cd ${REPO_NAME}
 fi