We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0aca6e + d9a492b commit 50d2f0fCopy full SHA for 50d2f0f
1 file changed
misc/deploy.sh
@@ -25,14 +25,12 @@ Check()
25
{
26
cd ~
27
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
+ if [ [-z "$(ls -A $dirPath/src/ublox/)"] || [-z "$(ls -A $dirPath/src/apriltags_ros/)"] ]; then
+ echo "The ublox and/or april tags submodule is missing."
+ cd $dirPath; #Entering directory/local git repo (needed to run git commands)
+ echo "Initiliazing and updating ublox and april tag submodules...";
+ git submodule init;
+ git submodule update;
36
fi
37
}
38
0 commit comments