Add final newlines and remove trailing spaces (#672)

* Add final newlines and remove trailing spaces

* Replace TAB characters with spaces

* Fix indent
This commit is contained in:
Viktor Szépe
2023-09-15 16:31:40 +02:00
committed by GitHub
parent c20d1c40c7
commit f2f7a7993d
40 changed files with 258 additions and 258 deletions

View File

@@ -356,7 +356,7 @@ _parse_config_files() {
# Strip leading and trailing spaces, and spaces around the first =,
# and end-of-line # comments.
config_opt="$(echo "$config_opt" | sed -e 's/^ *//g' -e 's/ *$//g' -e 's/[ ]*=[ ]*/=/' -e 's/\s[ ]*#.*$//')"
config_opt="$(echo "$config_opt" | sed -e 's/^ *//g' -e 's/ *$//g' -e 's/[ ]*=[ ]*/=/' -e 's/\s[ ]*#.*$//')"
# Skip blank lines.
[ "$config_opt" = "" ] && continue

View File

@@ -1284,14 +1284,14 @@ report_jemalloc_enabled() {
echo "jemalloc is not enabled in mysql config for process with id ${pid}"
else
echo "jemalloc enabled in mysql config for process with id ${pid}"
GENERAL_JEMALLOC_STATUS=1
GENERAL_JEMALLOC_STATUS=1
fi
done
if [ $GENERAL_JEMALLOC_STATUS -eq 1 ]; then
local jemalloc_location="$(get_var "pt-summary-internal-jemalloc_location" "${variables_file}")"
if [ -n "$jemalloc_location" ]; then
echo "Using jemalloc from $jemalloc_location"
echo "Using jemalloc from $jemalloc_location"
else
echo "Jemalloc library not found"
fi
@@ -1585,7 +1585,7 @@ report_mysql_summary () {
local encrypted_tables=""
local encrypted_tablespaces=""
if [ -s "$dir/keyring-plugins" ]; then
keyring_plugins="$(cat $dir/keyring-plugins)"
keyring_plugins="$(cat $dir/keyring-plugins)"
fi
if [ -s "$dir/encrypted-tables" ]; then
encrypted_tables="$(cat $dir/encrypted-tables)"