From fd2d54998cbd68e28c1b544dff1526590c518186 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 27 Apr 2025 14:53:11 +0200 Subject: webdeploy: also check the target directory exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- webdeploy.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit 1.4.1