diff options
| author | Robert Günzler <r@gnzler.io> | 2025-04-27 14:53:11 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-04-27 14:53:11 +0200 |
| commit | fd2d54998cbd68e28c1b544dff1526590c518186 (patch) | |
| tree | af285fe005ebfd134d9680b6aa09bc21d203cccb /webdeploy.mk | |
| parent | 29ae0bafa2dae880d837fbffc23e964436f72c1e (diff) | |
| download | site-fd2d54998cbd68e28c1b544dff1526590c518186.tar.gz | |
webdeploy: also check the target directory exists
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rw-r--r-- | webdeploy.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webdeploy.mk b/webdeploy.mk index 8860c43..3e7557c 100644 --- a/webdeploy.mk +++ b/webdeploy.mk @@ -3,7 +3,8 @@ DEPLOY_HOST ?= DEPLOY_DIR ?= /var/www/ webdeploy: - @ test -n "${DEPLOY_DIR}" + @ test -n "${SRC_DIR}" + @ ssh $(DEPLOY_HOST) test -n "${DEPLOY_DIR}" rsync -vhhh --delete -Ccrzl $(SRC_DIR)/ $(DEPLOY_HOST):$(DEPLOY_DIR)/ webdeploy-test: |