MT#15141 Hide debug output to keep old ngcpcfg output style

Also show affected files with merge conflicts if available.

Change-Id: I5d85e0980bb974fecb16dc45ea2426e5655be0a3
changes/86/2986/2
Alexander Lutay 11 years ago
parent 7adf2b23e2
commit c89f72e6b5

@ -83,14 +83,16 @@ validate_config() {
}
check_configs_conflicts() {
log_info "Checking merge conflicts in ngcp configs:"
log_debug "Checking merge conflicts in ngcp configs:"
if grep -rP --exclude-dir='.git' --exclude='*.dpkg-*' \
'^>>>>>>> [0-9a-fA-F]+' /etc/ngcp-config/ 2>&1
'^>>>>>>> [0-9a-fA-F]+' /etc/ngcp-config/ >/dev/null 2>&1
then
log_error "ERROR: ngcp configs with Git merge conflicts found."
log_error "ERROR: ngcp configs with Git merge conflicts found:"
grep -rP --exclude-dir='.git' --exclude='*.dpkg-*' \
'^>>>>>>> [0-9a-fA-F]+' /etc/ngcp-config/ >&2
exit 1
else
log_info "No ngcp configs with merge conflicts found."
log_debug "No ngcp configs with merge conflicts found."
fi
}

Loading…
Cancel
Save