File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,19 @@ if [ ! -d "src/config" ]; then
28
28
fi
29
29
30
30
# Ensure we have branch-specific SUMMARY files
31
- # If they don't exist, create them from the current SUMMARY.md
31
+ # If they don't exist, fail with an error
32
32
if [ ! -f " src/config/SUMMARY.md.develop" ]; then
33
- echo " Creating develop SUMMARY file from current... "
34
- cp src/SUMMARY.md src/config/SUMMARY.md.develop
33
+ echo " ERROR: src/config/SUMMARY.md. develop file is missing! "
34
+ exit 1
35
35
fi
36
36
37
37
if [ ! -f " src/config/SUMMARY.md.main" ]; then
38
- echo " Creating main SUMMARY file from current... "
39
- cp src/SUMMARY.md src/config/SUMMARY.md.main
38
+ echo " ERROR: src/config/SUMMARY.md. main file is missing! "
39
+ exit 1
40
40
fi
41
41
42
42
# Select the appropriate SUMMARY.md based on branch
43
- if [ " $CURRENT_BRANCH " = " main" ]; then
43
+ if [ " $CURRENT_BRANCH " = " main" ] || [ " $CURRENT_BRANCH " = " master " ] ; then
44
44
echo " Using main branch SUMMARY.md"
45
45
cp src/config/SUMMARY.md.main src/SUMMARY.md
46
46
else
You can’t perform that action at this time.
0 commit comments