Quote rsync target variables in Makefile deploy
A VPS_PATH containing whitespace or shell metacharacters would split on the unquoted expansion and hand rsync extra arguments. The existing VPS_PATH guard rejects obviously dangerous parents (/srv, /var, etc.) but does not catch this. Quoting fails closed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c7a588d769
commit
339433db20
2
Makefile
2
Makefile
|
|
@ -144,7 +144,7 @@ deploy: clean build sign
|
||||||
# fails (auth, branch protection, network), abort before touching
|
# fails (auth, branch protection, network), abort before touching
|
||||||
# the VPS so the public source repo and the live site stay in sync.
|
# the VPS so the public source repo and the live site stay in sync.
|
||||||
git push -u origin main
|
git push -u origin main
|
||||||
rsync -avz --delete _site/ $(VPS_USER)@$(VPS_HOST):$(VPS_PATH)/
|
rsync -avz --delete _site/ "$(VPS_USER)@$(VPS_HOST):$(VPS_PATH)/"
|
||||||
|
|
||||||
watch: export SITE_ENV = dev
|
watch: export SITE_ENV = dev
|
||||||
watch:
|
watch:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue