From: Martin Schwenke Date: Mon, 21 Jun 2021 10:30:21 +0000 (+1000) Subject: ctdb-scripts: Ignore ShellCheck SC3013 for test -nt X-Git-Tag: tevent-0.11.0~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=466aa8b6f5a61d523d708ceb3d5ab1c409bccc1b;p=thirdparty%2Fsamba.git ctdb-scripts: Ignore ShellCheck SC3013 for test -nt 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 Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Fri Jun 25 10:06:48 UTC 2021 on sn-devel-184 --- diff --git a/ctdb/config/nfs-linux-kernel-callout b/ctdb/config/nfs-linux-kernel-callout index 6a372d4b4fd..9c2d0418e55 100755 --- a/ctdb/config/nfs-linux-kernel-callout +++ b/ctdb/config/nfs-linux-kernel-callout @@ -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"