Skip to content

Commit

Permalink
fix publish
Browse files Browse the repository at this point in the history
- avoid PYTHONPATH definition for http tool
- PYTHONPATH is defined spksrc.crossenv.mk and was introduced with SynoCommunity#6282
  • Loading branch information
hgy59 committed Jan 25, 2025
1 parent 786dce0 commit cee185c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/spksrc.publish.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ endif
ifeq ($(PUBLISH_API_KEY),)
$(error Set PUBLISH_API_KEY in local.mk)
endif
@response=$$(http --verify=no --ignore-stdin --auth $(PUBLISH_API_KEY): POST $(PUBLISH_URL)/packages @$(SPK_FILE_NAME) --print=hb) ; \
@response=$$(PYTHONPATH= http --verify=no --ignore-stdin --auth $(PUBLISH_API_KEY): POST $(PUBLISH_URL)/packages @$(SPK_FILE_NAME) --print=hb) ; \
response_code=$$(echo "$$response" | grep -Fi "HTTP/1.1" | awk '{print $$2}') ; \
if [ "$$response_code" = "201" ] ; then \
output=$$(echo "$$response" | awk '/^[[:space:]]*$$/ {p=1;next} p') ; \
Expand Down

0 comments on commit cee185c

Please sign in to comment.