Skip to content

Commit 50d2f0f

Browse files
authored
Merge pull request #100 from BCLab-UNM/deploy-script-update-dir-struc
Updated deploy script to initialize and update submodules
2 parents a0aca6e + d9a492b commit 50d2f0f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

misc/deploy.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ Check()
2525
{
2626
cd ~
2727

28-
if [ -z "$(ls -A $dirPath/src/ublox/)" ]; then
29-
echo "The ublox submodule is missing."
30-
exit 1
31-
fi
32-
33-
if [ -z "$(ls -A $dirPath/src/apriltags_ros/)" ]; then
34-
echo "The apriltags submodule is missing."
35-
exit 1
28+
if [ [-z "$(ls -A $dirPath/src/ublox/)"] || [-z "$(ls -A $dirPath/src/apriltags_ros/)"] ]; then
29+
echo "The ublox and/or april tags submodule is missing."
30+
cd $dirPath; #Entering directory/local git repo (needed to run git commands)
31+
echo "Initiliazing and updating ublox and april tag submodules...";
32+
git submodule init;
33+
git submodule update;
3634
fi
3735
}
3836

0 commit comments

Comments
 (0)