Brian Behlendorf 3da3488e63
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
2018-01-17 10:17:16 -08:00
..
2012-08-27 11:47:44 -07:00
2018-01-17 10:17:16 -08:00
2017-08-15 17:26:38 -07:00
2017-12-14 12:44:27 -05:00
2014-06-10 16:46:21 -07:00
2017-08-15 17:26:38 -07:00
2017-08-09 15:31:08 -07:00
2017-09-18 14:23:09 -07:00
2018-01-17 10:17:16 -08:00
2018-01-17 10:17:16 -08:00
2018-01-17 10:17:16 -08:00