🥇 export from upstream (f22ca70)

This commit is contained in:
sandcage-export
2026-05-22 23:18:32 +02:00
parent 1a31d05e7c
commit ee5238cb0f
2 changed files with 10 additions and 1 deletions
+8 -1
View File
@@ -51,7 +51,14 @@ pub fn preseed_with_home(home: &Path) -> Result<()> {
println!("sandcage: seeded {} from template", settings_dest.display());
}
// 4. Create an empty Justfile if absent
// 4. Seed .claude.json so the bind mount targets a file, not a directory
let claude_json = sandcage_home.join(".claude.json");
if !claude_json.exists() {
std::fs::write(&claude_json, "{}\n")
.map_err(|e| InitError::WriteFileFailed(claude_json.clone(), e))?;
}
// 5. Create an empty Justfile if absent
let justfile = sandcage_home.join("Justfile");
if !justfile.exists() {
std::fs::write(&justfile, "")