mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:24:45 +07:00
chore: fix make with /bin/sh (#129)
This commit is contained in:
parent
812dd839f1
commit
9c632aa8ca
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -11,6 +11,7 @@ on:
|
|||||||
- "go.mod"
|
- "go.mod"
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
- ".github/workflows/build.yml"
|
- ".github/workflows/build.yml"
|
||||||
|
- "Makefile"
|
||||||
release:
|
release:
|
||||||
types: [ prereleased ]
|
types: [ prereleased ]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
8
Makefile
8
Makefile
@ -46,9 +46,9 @@ dae: ebpf
|
|||||||
|
|
||||||
## Begin Git Submodules
|
## Begin Git Submodules
|
||||||
.gitmodules.d.mk: .gitmodules
|
.gitmodules.d.mk: .gitmodules
|
||||||
@set -e -o pipefail && \
|
@set -e && \
|
||||||
submodules=( $$(grep '\[submodule "' .gitmodules | cut -d'"' -f2) ) && \
|
submodules=$$(grep '\[submodule "' .gitmodules | cut -d'"' -f2 | tr '\n' ' ') && \
|
||||||
echo "submodule_paths=$${submodules[@]}" > $@
|
echo "submodule_paths=$${submodules}" > $@
|
||||||
|
|
||||||
-include .gitmodules.d.mk
|
-include .gitmodules.d.mk
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ $(submodule_paths): .gitmodules.d.mk
|
|||||||
|
|
||||||
submodule submodules: $(submodule_paths)
|
submodule submodules: $(submodule_paths)
|
||||||
@if [ -z "$(submodule_paths)" ]; then \
|
@if [ -z "$(submodule_paths)" ]; then \
|
||||||
rm -f .gitmodules.mk; \
|
rm -f .gitmodules.d.mk; \
|
||||||
echo "Failed to generate submodules list. Please try again."; \
|
echo "Failed to generate submodules list. Please try again."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user