Skip to content

Commit 44d49e0

Browse files
oliwermjuraga
authored andcommitted
BUILD/MINOR: do not rely on $PWD to be defined
Not all shells define $PWD, including mine.
1 parent d4475ab commit 44d49e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DATAPLANEAPI_PATH?=${PWD}
1+
DATAPLANEAPI_PATH?=$(shell pwd)
22
GIT_REPO?=$(shell git config --get remote.origin.url)
33
GIT_HEAD_COMMIT=$(shell git rev-parse --short HEAD)
44
GIT_LAST_TAG=$(shell git describe --abbrev=0 --tags)
@@ -45,7 +45,7 @@ generate:
4545
--build-arg UID=$(shell id -u) \
4646
--build-arg GID=$(shell id -g) \
4747
-t dataplaneapi-swagger-gen .
48-
docker run --rm -v "$(PWD)":/data dataplaneapi-swagger-gen
48+
docker run --rm -v "$(shell pwd)":/data dataplaneapi-swagger-gen
4949
generate/post_swagger.sh
5050

5151
.PHONY: generate-native

0 commit comments

Comments
 (0)