diff options
| -rw-r--r-- | crates/shirabe/src/package/comparer/comparer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/shirabe/src/package/comparer/comparer.rs b/crates/shirabe/src/package/comparer/comparer.rs index d23e669..3139295 100644 --- a/crates/shirabe/src/package/comparer/comparer.rs +++ b/crates/shirabe/src/package/comparer/comparer.rs @@ -79,7 +79,10 @@ impl Comparer { shirabe_php_shim::chdir(¤t_directory); shirabe_php_shim::chdir(&self.update); if !Self::do_tree(".", &mut destination) { - std::process::exit(0); + // PHP calls `exit` here, but this is almost certainly a bug. The source branch above + // handles the same failure with `return`, and there is no reason for the destination + // branch to terminate the whole process. We treat it as `return`. + return; } shirabe_php_shim::chdir(¤t_directory); for (dir, value) in &source { |
