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 "