File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,17 @@ echo -e "${BLUE}TinyAGI CLI Installer${NC}"
3131echo " ====================="
3232echo " "
3333
34+ # Migrate from ~/.tinyclaw if needed
35+ if [ -d " $HOME /.tinyclaw" ] && [ ! -d " $INSTALL_HOME " ]; then
36+ echo -e " Migrating ${YELLOW} ~/.tinyclaw${NC} → ${GREEN} ~/.tinyagi${NC} "
37+ mv " $HOME /.tinyclaw" " $INSTALL_HOME "
38+ # Rename database files
39+ [ -f " $INSTALL_HOME /tinyclaw.db" ] && mv " $INSTALL_HOME /tinyclaw.db" " $INSTALL_HOME /tinyagi.db"
40+ [ -f " $INSTALL_HOME /tinyclaw.db-wal" ] && mv " $INSTALL_HOME /tinyclaw.db-wal" " $INSTALL_HOME /tinyagi.db-wal"
41+ [ -f " $INSTALL_HOME /tinyclaw.db-shm" ] && mv " $INSTALL_HOME /tinyclaw.db-shm" " $INSTALL_HOME /tinyagi.db-shm"
42+ echo -e " ${GREEN} ✓${NC} Migrated from ~/.tinyclaw"
43+ fi
44+
3445# Copy project files to ~/.tinyagi (permanent location)
3546if [ " $PROJECT_ROOT " != " $INSTALL_HOME " ]; then
3647 echo -e " Installing to: ${GREEN} ~/.tinyagi${NC} "
You can’t perform that action at this time.
0 commit comments