install: minor refactor for consistency

This commit is contained in:
Fernando Schauenburg 2022-02-07 19:47:30 +01:00
parent 795bae0929
commit 56ab8011fe

View file

@ -102,13 +102,13 @@ EOF
git config -f "$temp_git" user.name "${GIT_USER}"
git config -f "$temp_git" user.email "${GIT_EMAIL}"
diff "$config_file" "$temp_git" >/dev/null 2>&1 || {
if ! diff "$config_file" "$temp_git" >/dev/null 2>&1; then
echo "${yellow}OVERWRITE:$rst $config_file with $temp_git:"
echo "$cyan"
cat "$temp_git"
echo "$rst"
dry_run || cp -f "$temp_git" "$config_file"
}
fi
}
nvim_plugins() {