Skip to content

Commit

Permalink
Avoid updating the hosts file if there is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 14, 2023
1 parent 0c5821f commit a885fd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/update-known-hosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
$scannedHosts[$host] = trim($scanner->getOutput());
} else {
$stdErr->writeln(sprintf('Failed to scan host %s: %s', $host, $scanner->getErrorOutput()));
exit(1);
}
unset($scanners[$host]);
}
Expand Down

0 comments on commit a885fd5

Please sign in to comment.