Skip to content

Commit 0adf094

Browse files
authored
fix: correct shell command substitution syntax in Makefile (#81)
Signed-off-by: Kay Yan <[email protected]>
1 parent 040f4c5 commit 0adf094

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,16 +366,16 @@ download-zmq: ## Install ZMQ dependencies based on OS/ARCH
366366
else \
367367
echo "Installing ZMQ dependencies..."; \
368368
if [ "$(TARGETOS)" = "linux" ]; then \
369-
if [ -x "$(command -v apt)" ]; then \
369+
if [ -x "$$(command -v apt)" ]; then \
370370
apt update && apt install -y libzmq3-dev; \
371-
elif [ -x "$(command -v dnf)" ]; then \
371+
elif [ -x "$$(command -v dnf)" ]; then \
372372
dnf install -y zeromq-devel; \
373373
else \
374374
echo "Unsupported Linux package manager. Install libzmq manually."; \
375375
exit 1; \
376376
fi; \
377377
elif [ "$(TARGETOS)" = "darwin" ]; then \
378-
if [ -x "$(command -v brew)" ]; then \
378+
if [ -x "$$(command -v brew)" ]; then \
379379
brew install zeromq; \
380380
else \
381381
echo "Homebrew is not installed and is required to install zeromq. Install it from https://brew.sh/"; \

0 commit comments

Comments
 (0)