Skip to content

Commit a0aa9fa

Browse files
committed
Made make clean POSIX compliant
We used a bash-ism in make clean in the form of using `[[` in order to compare a string to a glob. Apparently, not all computers use bash in git submodule for-each, so we use the grep command right now in order to make the command more shell-generic.
1 parent 9894d64 commit a0aa9fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ _pack-%: build-%-$(BUILD_TYPE)
8686
fi
8787

8888
clean-git-packages:
89-
git submodule foreach '[[ "$$sm_path" == src/submodule_packages/* ]] && git clean -xffd && git restore .'
89+
git submodule foreach 'echo "$$sm_path" | grep "^src/submodule_packages/.*" && git clean -xffd && git restore .'
9090

9191
clean: clean-git-packages
9292
rm -rf build

0 commit comments

Comments
 (0)