From 38f5a52a1428fd1d4ef0e55a428781eeb56f39ee Mon Sep 17 00:00:00 2001 From: lyn Date: Wed, 1 Apr 2026 00:42:27 +0000 Subject: [PATCH] fix(create-repo): require AGENT_WORKSPACE env var instead of default --- git-hangman-lab/scripts/create-repo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/git-hangman-lab/scripts/create-repo b/git-hangman-lab/scripts/create-repo index a0f9bbd..e9595cb 100755 --- a/git-hangman-lab/scripts/create-repo +++ b/git-hangman-lab/scripts/create-repo @@ -4,8 +4,10 @@ set -euo pipefail # Get the directory where this script is located SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -# Default workspace (can be overridden by AGENT_WORKSPACE env var) -AGENT_WORKSPACE="${AGENT_WORKSPACE:-/root/.openclaw/workspace/workspace-mentor}" +if [[ -z "${AGENT_WORKSPACE:-}" ]]; then + echo "Error: AGENT_WORKSPACE environment variable is not set" + exit 1 +fi usage() { echo "Usage: $0 "