File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 16
16
exit 1
17
17
fi
18
18
19
- EXIT=0
20
-
21
19
tree () {
22
20
local KEY SUB DIR URL NAME BRANCH CONNECT i
23
21
@@ -57,6 +55,8 @@ tree() {
57
55
fi
58
56
fi
59
57
58
+ local EXIT=0
59
+
60
60
for (( i = 0 ; i < ${# KEYS[@]} ; ++ i)) ; do
61
61
SUB=${KEYS[$i]}
62
62
SUB=" ${SUB% .path} "
@@ -75,14 +75,16 @@ tree() {
75
75
URL=" $( git config --file .gitmodules --get " submodule.requires/$KEY .url" || \
76
76
git config --file .gitmodules --get " submodule.equipment/$KEY .url" ) "
77
77
78
- tree " $DIR /.gitmodules" requires " $PREFIX " " $TURN " " $DIR ($URL )"
78
+ if ! tree " $DIR /.gitmodules" requires " $PREFIX " " $TURN " " $DIR ($URL )" ; then
79
+ EXIT=1
80
+ fi
79
81
else
80
82
EXIT=1
81
83
echo " $PREFIX ${TURN} ─ $SUB " $' \033 [31;1m── submodule missing\033 [0m'
82
84
fi
83
85
done
86
+
87
+ return $EXIT
84
88
}
85
89
86
90
tree .gitmodules ' requires|equipment' ' ' ' ├─' ' '
87
-
88
- exit $EXIT
You can’t perform that action at this time.
0 commit comments