diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-12-01 17:25:15 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-12-01 18:16:57 +0300 |
commit | f275c972fa02faf0caa9b021f3c42e22becba8f5 (patch) | |
tree | 70159287a979482ef754fdf4d266875f678f9333 /Makefile | |
parent | a61a48a6b88a1d00bb7a3e003486d27973e1f443 (diff) |
Makefile: Use POSIX-compliant way to detect executable path
We're using which(1) to detect the location of the system-installed Git.
This utility is not POSIX-compliant, which instead specifies that one
ought to use command(3P) instead.
Switch over to use `command -v` to fix the incompatibility and not
depend on which(1) being installed.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ INSTALL_DEST_DIR := ${DESTDIR}${bindir} GIT_PREFIX ?= ${GIT_DEFAULT_PREFIX} # Tools -GIT := $(shell which git) +GIT := $(shell command -v git) GOIMPORTS := ${TOOLS_DIR}/goimports GOFUMPT := ${TOOLS_DIR}/gofumpt GOLANGCI_LINT := ${TOOLS_DIR}/golangci-lint |