HomeFreeBSD

Fix minor shellcheck 0.7.2 warnings

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 9 2021, 7:21 PM
Parents
rG6ce97bb4a288: zed.d/history_event-zfs-list-cacher.sh.in: parallelise, simplify
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG1180d61152ff: Fix minor shellcheck 0.7.2 warnings (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 10 2021, 5:50 PM