Skip to content

Commit cb42f35

Browse files
author
Petter Kvalvaag
committed
setup: Automatically setup submodules if missing
Signed-off-by: Petter Kvalvaag <[email protected]>
1 parent b459e94 commit cb42f35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if [ $EUID -ne 0 ]; then
1010
exit 1
1111
fi
1212

13+
if git submodule status --recursive | grep -q "^-"; then
14+
git submodule update --init --recursive
15+
fi
16+
1317
"$DIR/etc/DependencyInstaller.sh" -base
1418
"$DIR/tools/OpenROAD/etc/DependencyInstaller.sh" -base
1519

0 commit comments

Comments
 (0)