Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/cli/src/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ impl Install {
let target_str = target_dir.to_str().unwrap_or_default();

let execute_git = |args: &[&str]| -> Result<(), InstallError> {
let status = Command::new("git")
let output = Command::new("git")
.args(args)
.status()
.output()
.map_err(|err| InstallError::GitExecution(err, url.to_owned()))?;

if !status.success() {
if !output.status.success() {
// Force to remove file, if something went wrong
let _ = std::fs::remove_dir_all(target_dir);
return Err(InstallError::GitCloneFailed(url.to_owned()));
Expand Down
Loading