Spaces:
Runtime error
Runtime error
File size: 1,202 Bytes
767597b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/bash
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!" |