Skip to content

Commit c699367

Browse files
committed
fix: Root directory lookup
1 parent e2cfe13 commit c699367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ifeq ($(origin TRIVY_VERSION), undefined)
22
$(error Required env-var TRIVY_VERSION has not been set, please set TRIVY_VERSION to the version matching the NKP/DKP release. See README for details)
33
endif
44

5-
ROOT_DIR := $(shell cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5+
ROOT_DIR := $(shell git rev-parse --show-toplevel)
66
TIMESTAMP ?= $(shell date -u +%Y%m%dT%H%M%SZ )
77

88
REGISTRY ?= docker.io

0 commit comments

Comments
 (0)