Spaces:
Runtime error
Runtime error
| echo "π OpenClaw Hugging Face Spaces Setup" | |
| echo "=====================================" | |
| echo "" | |
| # Check if git is initialized | |
| if [ ! -d ".git" ]; then | |
| echo "π¦ Initializing git repository..." | |
| git init | |
| else | |
| echo "β Git already initialized" | |
| fi | |
| # Set git config | |
| git config user.email "atum246@users.noreply.github.com" | |
| git config user.name "Atum246" | |
| # Check if remote is set | |
| if git remote get-url origin > /dev/null 2>&1; then | |
| echo "β Git remote already set to: $(git remote get-url origin)" | |
| else | |
| echo "β οΈ No git remote set. Adding..." | |
| git remote add origin https://github.com/Atum246/openclaw-huggingface.git | |
| fi | |
| # Add all files | |
| echo "" | |
| echo "π Adding files to git..." | |
| git add . | |
| # Commit | |
| echo "" | |
| echo "πΎ Committing changes..." | |
| git commit -m "Initial OpenClaw Hugging Face Spaces setup with auto-backup" | |
| echo "" | |
| echo "β Ready to push!" | |
| echo "" | |
| echo "π Next steps:" | |
| echo " 1. GitHub repo: https://github.com/Atum246/openclaw-huggingface (will be auto-created)" | |
| echo " 2. Push: git push -u origin main" | |
| echo " 3. Go to Hugging Face and duplicate this Space" | |
| echo "" | |
| echo "π See README.md for Hugging Face deployment instructions!" |