Skip to content

Commit

Permalink
Add sftp_upload Makefile target to .phony
Browse files Browse the repository at this point in the history
Signed-off-by: Deniz Turgut <dturgut@gmail.com>
  • Loading branch information
avaris authored and justinmayer committed Jun 4, 2023
1 parent 418a919 commit 1f6b344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pelican/tools/templates/Makefile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ publish:
ssh_upload: publish
scp -P $(SSH_PORT) -r "$(OUTPUTDIR)"/* "$(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)"

{% set upload = upload + ["sftp_upload"] %}
sftp_upload: publish
printf 'put -r $(OUTPUTDIR)/*' | sftp $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)

Expand Down

0 comments on commit 1f6b344

Please sign in to comment.