🥇 export from upstream (f22ca70)
This commit is contained in:
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user