Skip to content

Commit 7f0fdf9

Browse files
JohTCopilot
andauthored
Remove end-of-configuration marker in configureNeo4j
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent fb1aa8f commit 7f0fdf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/configureNeo4j.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ append_configuration_from_template() {
109109
# This way this function is idempotent, the configuration is always up to date with the template and there are no duplicate entries.
110110
if grep -q "^${EYE_CATCHER_COMMENT_PREFIX}" "${NEO4J_CONFIG}"; then
111111
echo "${SCRIPT_NAME}: Deleting old configuration that had been appended from the template before since the eye-catcher comment was found. This ensures that there are no duplicate entries and that the configuration is up to date with the template."
112-
sed -i.edit.backup "/^${EYE_CATCHER_COMMENT_PREFIX}/,/^# End of configuration from ${NEO4J_CONFIG_TEMPLATE}/d" "${NEO4J_CONFIG}"
112+
sed -i.edit.backup "/^${EYE_CATCHER_COMMENT_PREFIX}/,\$d" "${NEO4J_CONFIG}"
113113
if grep -q '^$' "${NEO4J_CONFIG}"; then
114114
sed -i.edit.backup '$d' "${NEO4J_CONFIG}" # Delete the last line of the config if it is an empty line
115115
fi

0 commit comments

Comments
 (0)