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
..
2018-01-09 12:28:03 -08:00
2018-01-17 10:17:16 -08:00
2017-08-09 15:31:08 -07:00
2015-05-11 15:07:00 -07:00
2017-05-22 12:34:32 -04:00
2017-04-05 13:21:10 -07:00
2015-05-11 15:07:00 -07:00
2017-01-03 11:31:18 -06:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2015-05-11 15:07:00 -07:00
2017-04-12 08:57:25 -07:00
2015-05-11 15:07:00 -07:00
2016-12-12 10:46:26 -08:00
2015-05-11 15:07:00 -07:00