File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,10 +109,13 @@ MAXOA_RELEASE_PASSWORD=$(shell cat maxoa-key.txt)
109109$(MAXOA_DIRECTORY ) /$(MAXOA_FILENAME ) : $(SRC )
110110 mkdir -p $(MAXOA_DIRECTORY )
111111 @test $(MAXOA_RELEASE_PASSWORD )
112- # @release_response=$(shell curl -I -s -o /dev/null -w "%{http_code}" https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD))
113- # @if [ "$$release_response" != "200" ]; then echo "POET Release Failure." && exit 1; fi
114- @echo " POET Release Skipped!"
115- @curl -Lk https://poet.jax.org/api/v1/export/maxo >> $@
112+ @release_response=$$(curl -I -s -o /dev/null -w "%{http_code}" https://poet.jax.org/api/v1/export/release?key=$(MAXOA_RELEASE_PASSWORD ) ) ; \
113+ if [ " $$ release_response" != " 200" ]; then \
114+ echo " POET Release Failure. Got HTTP $$ release_response" ; \
115+ exit 1; \
116+ fi
117+ @echo " POET Release Success!"
118+ @curl -Lk https://poet.jax.org/api/v1/export/maxo > $@
116119
117120.PHONY : maxoa
118121maxoa :
You can’t perform that action at this time.
0 commit comments