fix(create-repo): require AGENT_WORKSPACE env var instead of default

This commit is contained in:
lyn
2026-04-01 00:42:27 +00:00
parent ca9d3b4fe5
commit 38f5a52a14

View File

@@ -4,8 +4,10 @@ set -euo pipefail
# Get the directory where this script is located # Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Default workspace (can be overridden by AGENT_WORKSPACE env var) if [[ -z "${AGENT_WORKSPACE:-}" ]]; then
AGENT_WORKSPACE="${AGENT_WORKSPACE:-/root/.openclaw/workspace/workspace-mentor}" echo "Error: AGENT_WORKSPACE environment variable is not set"
exit 1
fi
usage() { usage() {
echo "Usage: $0 <repo-name>" echo "Usage: $0 <repo-name>"