From c7bf5e448c87f605087af57c92dddda27f0c57cf Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 19 Nov 2026 19:41:10 -0800 Subject: [PATCH] remove complexity --- script/publish | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/script/publish b/script/publish index 32db2c8..faef5dc 100755 --- a/script/publish +++ b/script/publish @@ -14,16 +14,13 @@ set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)" -main() { - if [ -z "${DOCKER_HOST:-}" ]; then - echo "script/publish: DOCKER_HOST is not set; set it to the Docker host that builds the image, such as ssh://user@build.example.com" >&2 - exit 1 - fi - if [ -z "${PUBLISH_IMAGE:-}" ]; then - echo "script/publish: PUBLISH_IMAGE is not set; set it to the image name in the registry, such as registry.example.com/smallwebwaf" >&2 - exit 1 - fi +PUBLISH_IMAGE="git.eeqj.de/sneak/smallwebwaf" +main() { + + # we don't set DOCKER_HOST here because the caller is expected to have + # either already set it, or used 'docker context' to make 'docker + # ' "just work". cd "$ROOT" # Own line: a failing command substitution inside an argument does