From 5e7bbcb069e45ae30bc53e9f32f3f12a7461d34d Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 10 Jun 2022 10:28:56 +1000 Subject: [PATCH] ctdb-scripts: Avoid ShellCheck info SC2162 SC2162 (info): read without -r will mangle backslashes. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/events/legacy/05.system.script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/config/events/legacy/05.system.script b/ctdb/config/events/legacy/05.system.script index 52864aebe2f..87d03eff30d 100755 --- a/ctdb/config/events/legacy/05.system.script +++ b/ctdb/config/events/legacy/05.system.script @@ -59,7 +59,7 @@ check_thresholds() if validate_percentage "$_warn_threshold" "$_thing"; then if [ "$_usage" -ge "$_warn_threshold" ]; then if [ -r "$_cache" ]; then - read _prev <"$_cache" + read -r _prev <"$_cache" else _prev="" fi @@ -99,7 +99,7 @@ set_monitor_filsystem_usage_defaults() done | sort -u | xargs >"$_fs_defaults_cache" fi - read CTDB_MONITOR_FILESYSTEM_USAGE <"$_fs_defaults_cache" + read -r CTDB_MONITOR_FILESYSTEM_USAGE <"$_fs_defaults_cache" } monitor_filesystem_usage() -- 2.47.3