Commit 4af14fb6 authored by Nolan's avatar Nolan

Make deploy without SERVER print an error.

parent 3fd5d344
......@@ -236,7 +236,6 @@ $(UBOOT_SRC):
[ `echo "$${PIPESTATUS[@]}" | tr -s ' ' + | bc` -eq 0 ] || \
( rm -rf $(UBOOTDIR) && false )
UBOOT_PATCH := $(UBOOTDIR)/.config
uboot_patch: $(UBOOT_PATCH)
$(UBOOT_PATCH): $(UBOOT_SRC) $(KCONFIGDIR)/$(ARCH)_uconfig
......@@ -613,11 +612,11 @@ endif
PHONY += deploy
ifeq ($(ARCH:arm%=),)
deploy: $(RPI3_ZIP)
@test $(SERVER)
@test $(SERVER) || ( echo 'set SERVER' && false)
scp $(RPI3_ZIP) root@$(SERVER):~/data/sslnginx/html/images/
else ifeq ($(ARCH), amd64)
deploy: $(PC_ZIP)
@test $(SERVER)
@test $(SERVER) || ( echo 'set SERVER' && false)
scp $(PC_ZIP) root@$(SERVER):~/data/sslnginx/html/images/
endif
########################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment