Skip to content

Commit 3c5bfb8

Browse files
jlia0claude
andauthored
fix(install): migrate ~/.tinyclaw to ~/.tinyagi before installing (#239)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e788405 commit 3c5bfb8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ echo -e "${BLUE}TinyAGI CLI Installer${NC}"
3131
echo "====================="
3232
echo ""
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)
3546
if [ "$PROJECT_ROOT" != "$INSTALL_HOME" ]; then
3647
echo -e "Installing to: ${GREEN}~/.tinyagi${NC}"

0 commit comments

Comments
 (0)