From 23d23bc6dd9cd1224b96bea45cfcdcc8f40b10c1 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 22 Feb 2026 22:23:00 +0100 Subject: mk/webdeploy: check for empty DEPLOY_DIR 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 78533a0..1708542 100644 --- a/webdeploy.mk +++ b/webdeploy.mk @@ -1,9 +1,10 @@ SRC_DIR ?= . DEPLOY_HOST ?= -DEPLOY_DIR ?= /var/www/ +DEPLOY_DIR ?= webdeploy: @ test -n "${SRC_DIR}" + @ test -n "${DEPLOY_DIR}" @ ssh $(DEPLOY_HOST) test -n "${DEPLOY_DIR}" rsync -vhhh --delete-after --delete-excluded -Ccrzl --exclude-from=.webdeployignore $(SRC_DIR)/ $(DEPLOY_HOST):$(DEPLOY_DIR)/ -- cgit 1.4.1