We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 337d0c3 commit b4046baCopy full SHA for b4046ba
layer0/packet/make.mk
@@ -1,6 +1,6 @@
1
-PACKET_API_TOKEN ?= $(shell cat $(DBKEY)/packet.api.token)
2
-PACKET_PROJECT_ID ?= $(shell cat $(DBKEY)/packet.project.id)
3
-CLOUDFLARE_API_TOKEN ?= $(shell cat $(DBKEY)/cloudflare.api.token)
+PACKET_API_TOKEN ?= $(shell [ -f $(DBKEY)/packet.api.token ] && cat $(DBKEY)/packet.api.token)
+PACKET_PROJECT_ID ?= $(shell [ -f $(DBKEY)/packet.project.id ] && cat $(DBKEY)/packet.project.id)
+CLOUDFLARE_API_TOKEN ?= $(shell [ -f $(DBKEY)/cloudflare.api.token ] && cat $(DBKEY)/cloudflare.api.token)
4
5
tfopts := -state '$(tfstatefs)' \
6
-var 'packet_api_token=$(PACKET_API_TOKEN)' \
0 commit comments