Escape the \n in statements

This commit is contained in:
Mikhail f. Shiryaev 2024-09-11 13:08:58 +02:00
parent 3921f910f5
commit c1830bc041
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -195,7 +195,7 @@ function setup_logs_replication
if [ "${#statement_print}" -gt 4000 ]; then
statement_print="${statement::1999}\n…\n${statement:${#statement}-1999}"
fi
echo "$statement_print"
echo -e "$statement_print"
echo "::endgroup::"
echo "$statement" | clickhouse-client --database_replicated_initial_query_timeout_sec=10 \