Skip to content

Commit

Permalink
Make package/Makefile safe for /bin/sh (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Apr 3, 2023
1 parent c7b01d7 commit a50af33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/packages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ packages/install:
## Install package (e.g. helm, helmfile, kubectl)
packages/install/%:
@binary="$*"; \
if [[ -x "$(INSTALL_PATH)/$$binary" ]]; then \
if [ -x "$(INSTALL_PATH)/$$binary" ]; then \
echo "* Package $$binary already installed"; \
elif [[ "$(PACKAGES_PREFER_HOST)" == "true" ]] && installed=$$(command -v $* 2>/dev/null); then \
elif [ "$(PACKAGES_PREFER_HOST)" = "true" ] && installed=$$(command -v $* 2>/dev/null); then \
echo Using "$*" from "$$installed" ; \
else \
$(MAKE) packages/install && \
Expand Down

0 comments on commit a50af33

Please sign in to comment.