]> git.proxmox.com Git - mirror_zfs.git/commit
Fix minor shellcheck 0.7.2 warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Jun 2021 19:21:24 +0000 (12:21 -0700)
committerGitHub <noreply@github.com>
Wed, 9 Jun 2021 19:21:24 +0000 (12:21 -0700)
commit88af959b24301e6fb39ce6ae8b66bdb7e817c710
treee67337f66bcda9f6e0bb8fb99facc1781b49f97d
parent08cd0717359b1a18693e3c8e6d6e5a2819b35a48
Fix minor shellcheck 0.7.2 warnings

The first warning of a misspelling is a false positive, so we annotate
the script accordingly.  As for the x-prefix warnings update the check
to use the conventional '[ -z <string> ]' syntax.

all-syslog.sh:46:47: warning: Possible misspelling: ZEVENT_ZIO_OBJECT
    may not be assigned, but ZEVENT_ZIO_OBJSET is. [SC2153]
make_gitrev.sh:53:6: note: Avoid x-prefix in comparisons as it no
    longer serves a purpose [SC2268]
man-dates.sh:10:7: note: Avoid x-prefix in comparisons as it no
    longer serves a purpose [SC2268]

Reviewed-by: Ahelenia ZiemiaƄska <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12208
cmd/zed/zed.d/all-syslog.sh
scripts/make_gitrev.sh
scripts/man-dates.sh