]> granicus.if.org Git - zfs/commit
Fix shellcheck v0.4.6 warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jan 2018 18:17:16 +0000 (10:17 -0800)
committerTony Hutter <hutter2@llnl.gov>
Tue, 30 Jan 2018 16:27:31 +0000 (10:27 -0600)
commit9d1a39cec6ba98c33cf0e358d2bac35dc1552d01
tree38aad1a9ffc3599e6ce45c078cf9f42457ff7d5a
parent2a7b736dcea1abad62cceb36947e757b98c0e330
Fix shellcheck v0.4.6 warnings

Resolve new warnings reported after upgrading to shellcheck
version 0.4.6.  This patch contains no functional changes.

* egrep is non-standard and deprecated. Use grep -E instead. [SC2196]
* Check exit code directly with e.g. 'if mycmd;', not indirectly
  with $?.  [SC2181]  Suppressed.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7040
cmd/zed/zed.d/zed-functions.sh
scripts/commitcheck.sh
scripts/zloop.sh
tests/zfs-tests/tests/functional/acl/acl_common.kshlib