fix(sandbox): canonicalize cached Bash path

This commit is contained in:
Bryan Helmkamp 2026-07-24 23:01:32 -04:00
parent 6261c3b0fc
commit 50a6cd3637
No known key found for this signature in database

View file

@ -92,8 +92,7 @@ impl LocalSandbox {
}
};
let _ = self.bash_path.set(resolved.clone());
Ok(resolved)
Ok(self.bash_path.get_or_init(|| resolved).clone())
}
/// Verify the resolved executable is non-login Bash.