fix(create-repo): require AGENT_WORKSPACE env var instead of default
This commit is contained in:
@@ -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 <repo-name>"
|
||||
|
||||
Reference in New Issue
Block a user