Skip to content

Commit

Permalink
chore: fix make with /bin/sh (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzz2017 authored Jun 9, 2023
1 parent 812dd83 commit 9c632aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- "go.mod"
- "go.sum"
- ".github/workflows/build.yml"
- "Makefile"
release:
types: [ prereleased ]
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ dae: ebpf

## Begin Git Submodules
.gitmodules.d.mk: .gitmodules
@set -e -o pipefail && \
submodules=( $$(grep '\[submodule "' .gitmodules | cut -d'"' -f2) ) && \
echo "submodule_paths=$${submodules[@]}" > $@
@set -e && \
submodules=$$(grep '\[submodule "' .gitmodules | cut -d'"' -f2 | tr '\n' ' ') && \
echo "submodule_paths=$${submodules}" > $@

-include .gitmodules.d.mk

Expand All @@ -58,7 +58,7 @@ $(submodule_paths): .gitmodules.d.mk

submodule submodules: $(submodule_paths)
@if [ -z "$(submodule_paths)" ]; then \
rm -f .gitmodules.mk; \
rm -f .gitmodules.d.mk; \
echo "Failed to generate submodules list. Please try again."; \
exit 1; \
fi
Expand Down

0 comments on commit 9c632aa

Please sign in to comment.