diff --git a/rsync-backup-target/resources/bin/compose-add-rsync-key b/rsync-backup-target/resources/bin/compose-add-rsync-key index ffd76ac3..5be9ff6e 100755 --- a/rsync-backup-target/resources/bin/compose-add-rsync-key +++ b/rsync-backup-target/resources/bin/compose-add-rsync-key @@ -125,8 +125,11 @@ EOF exit 1 fi echo "${WHITE}Applying these changes:${NORMAL}" - echo "$diff" - + if type -p colordiff >/dev/null; then + colordiff -u "$compose_file" <(echo "$content") + else + echo "$diff" + fi | egrep -v "^[^ ]*(---|\+\+\+)" cp "$compose_file" "${compose_file}.old" echo "$content" > "$compose_file"