Commit 0c2ee41
home-persist: auto-repair legacy nested symlink artifact (1.2.1)
Systems affected by the pre-1.2.0 bug still have a stale symlink inside the
home directory (e.g. $HOME/.claude/.claude → /mnt/home-persist/.claude).
Detect it before the merge — readlink -f match on $target — and drop it, so
the subsequent cp -an doesn't copy it into the volume as a self-loop and the
ln -sfn below replaces the directory cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4eb11cd commit 0c2ee41
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
77 | 92 | | |
78 | 93 | | |
79 | 94 | | |
| |||
0 commit comments