From: Martin Schwenke Date: Fri, 10 Jun 2022 00:28:56 +0000 (+1000) Subject: ctdb-scripts: Avoid ShellCheck info SC2162 X-Git-Tag: tevent-0.13.0~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e7bbcb069e45ae30bc53e9f32f3f12a7461d34d;p=thirdparty%2Fsamba.git ctdb-scripts: Avoid ShellCheck info SC2162 SC2162 (info): read without -r will mangle backslashes. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- 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()