Skip to content

Commit 59cd4e0

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

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)
@@ -34,7 +34,7 @@ generate:
3434
--build-arg UID=$(shell id -u) \
3535
--build-arg GID=$(shell id -g) \
3636
-t dataplaneapi-swagger-gen .
37-
docker run --rm -v "$(PWD)":/data dataplaneapi-swagger-gen
37+
docker run --rm -v "$(shell pwd)":/data dataplaneapi-swagger-gen
3838
generate/post_swagger.sh
3939

4040
.PHONY: generate-native

0 commit comments

Comments
 (0)