Improve installto.sh (follow-up to PR #6261) (#6263)

If the contents `file` and `file.new` are the same, `file.new` should be removed.
pull/6274/head
Helmut K. C. Tessarek 6 years ago committed by Aleksander Machniak
parent ba9ee7e212
commit 5c78b8471b

@ -88,6 +88,9 @@ if (strtolower($input) == 'y') {
if (file_get_contents("$target_dir/$file.new") != file_get_contents("$target_dir/$file")) {
echo "\n!! New $file file saved as $file.new !!";
}
else {
@unlink("$target_dir/$file.new");
}
}
}

Loading…
Cancel
Save