You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This way this function is idempotent, the configuration is always up to date with the template and there are no duplicate entries.
110
110
if grep -q "^${EYE_CATCHER_COMMENT_PREFIX}""${NEO4J_CONFIG}";then
111
111
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}"
113
113
if grep -q '^$'"${NEO4J_CONFIG}";then
114
114
sed -i.edit.backup '$d'"${NEO4J_CONFIG}"# Delete the last line of the config if it is an empty line
0 commit comments