]> git.proxmox.com Git - mirror_zfs.git/commit
Fix shellcheck v0.4.6 warnings
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Jan 2018 18:17:16 +0000 (10:17 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2018 18:17:16 +0000 (10:17 -0800)
commit3da3488e6339ff2dc5c7f3da8c8a0c552d018d68
treeacf9843a79221a7fa9de852507d3cdef8772ee44
parentd658b2caa95726c13d99123874910cdedc7ce866
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/zfs.sh
scripts/zimport.sh
scripts/zloop.sh
tests/zfs-tests/tests/functional/acl/acl_common.kshlib