Skip to content

Commit 2105259

Browse files
authored
Updating submodules in the polycube repository
If this script is launched on an existing (and perhaps old) source code repository, submodules may be out of date. This commits adds a command that updates all the polycube submodules. Signed-off-by: Fulvio Risso <fulvio.risso@polito.it>
1 parent 552885f commit 2105259

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ if [ "$INSTALL_CLEAN_POLYCUBE" == true ] ; then
142142
$SUDO rm -rf build
143143
fi
144144

145+
# Update submodules; useful in case you are re-running
146+
# this script on an existing install
147+
git submodule update --init --recursive
148+
145149
mkdir -p build && cd build
146150
git log -1
147151

0 commit comments

Comments
 (0)