#!/bin/bash set -e FRAMEWORK_DIR="$HOME/.automaton" if [ ! -d "$FRAMEWORK_DIR" ]; then echo "ERROR: automaton not installed at $FRAMEWORK_DIR" echo "Run './install.sh' first." exit 1 fi echo "Updating automaton at $FRAMEWORK_DIR..." cd "$FRAMEWORK_DIR" # Check if it's a git repo if [ ! -d ".git" ]; then echo "ERROR: $FRAMEWORK_DIR is not a git repository." echo "Cannot update. Please reinstall from git." exit 1 fi # Fetch and pull latest changes git pull origin main echo "" echo "Update complete."