From: Martin Schwenke Date: Fri, 18 Mar 2022 02:40:20 +0000 (+1100) Subject: ctdb-scripts: Avoid ShellCheck warning SC2162 X-Git-Tag: tevent-0.13.0~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0247fd8a02bf3840940d781c8323be3fa07c4d5e;p=thirdparty%2Fsamba.git ctdb-scripts: Avoid ShellCheck warning SC2162 SC2162 read without -r will mangle backslashes Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/nfs-linux-kernel-callout b/ctdb/config/nfs-linux-kernel-callout index 60925ec72f1..f2f3e3824d0 100755 --- a/ctdb/config/nfs-linux-kernel-callout +++ b/ctdb/config/nfs-linux-kernel-callout @@ -352,7 +352,7 @@ nfs_check_thread_count() # nfsd should be running the configured number of threads. If # there are a different number of threads then tell nfsd the # correct number. - read _running_threads <"$_threads_file" || { + read -r _running_threads <"$_threads_file" || { echo "WARNING: Reading \"${_threads_file}\" unexpectedly failed" exit 0 }