]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: Ignore ShellCheck SC3013 for test -nt
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Jun 2021 10:30:21 +0000 (20:30 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 25 Jun 2021 10:06:48 +0000 (10:06 +0000)
In ShellCheck 0.7.2, POSIX compatibility warnings got their own SC3xxx
error codes, so now both the old and new codes need to be ignored.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jun 25 10:06:48 UTC 2021 on sn-devel-184

ctdb/config/nfs-linux-kernel-callout

index 6a372d4b4fd551fc9bc2daa549645c15903359a0..9c2d0418e551fa5c6460f04119b292c237de8154 100755 (executable)
@@ -329,7 +329,7 @@ nfs_monitor_list_shares ()
 {
     _cache_file="${CTDB_NFS_CALLOUT_STATE_DIR}/list_shares_cache"
     # -nt operator is well supported in Linux: dash, bash, ksh, ...
-    # shellcheck disable=SC2039
+    # shellcheck disable=SC2039,SC3013
     if  [ ! -r "$nfs_exports_file" ] || [ ! -r "$_cache_file" ] || \
            [ "$nfs_exports_file" -nt "$_cache_file" ] ; then
        mkdir -p "$CTDB_NFS_CALLOUT_STATE_DIR"