From a86b80e83a618569c02513476598dbc6567b36f6 Mon Sep 17 00:00:00 2001 From: lyn Date: Mon, 13 Apr 2026 20:54:33 +0000 Subject: [PATCH] Logout before release in publish-package trap --- git-hangman-lab/scripts/publish-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hangman-lab/scripts/publish-package b/git-hangman-lab/scripts/publish-package index 4e6838e..387872c 100755 --- a/git-hangman-lab/scripts/publish-package +++ b/git-hangman-lab/scripts/publish-package @@ -71,7 +71,7 @@ do_docker() { LOCKFILE="$HOME/.openclaw/.docker" lock-mgr acquire "$LOCKFILE" "$KEY" - trap 'lock-mgr release "$LOCKFILE" "$KEY" 2>/dev/null || true; docker logout "$REGISTRY" 2>/dev/null || true' EXIT + trap 'docker logout "$REGISTRY" 2>/dev/null || true; lock-mgr release "$LOCKFILE" "$KEY" 2>/dev/null || true' EXIT echo "Logging in to $REGISTRY..." docker login "$REGISTRY" -u "$OWNER" -p "$(secret-mgr get-secret --key git)" 2>/dev/null