ctdb-scripts: Avoid ShellCheck warning SC2162
authorMartin Schwenke <martin@meltin.net>
Fri, 18 Mar 2022 02:40:20 +0000 (13:40 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 24 Jun 2022 09:49:33 +0000 (09:49 +0000)
SC2162 read without -r will mangle backslashes

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/nfs-linux-kernel-callout

index 60925ec72f115a5dc27322e515fc44f13235a56f..f2f3e3824d00ed105ad9f19d10881103c4051b4f 100755 (executable)
@@ -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
        }