zfs/scripts
Brian Behlendorf 64025fa3a1
Silence 'make checkbashisms'
Commit d2bce6d03 added the 'make checkbashisms' target but did not
resolve all of the bashisms in the scripts.  This commit doesn't
resolve them all either but it does fix up a few, and it excludes
the others so 'make checkstyle' no longer prints warnings.  It's
a small step in the right direction.

* Dracut is Linux specific and itself depends on bash.  Therefore
  all dracut support scripts can be bash specific, update their
  shebang accordingly.

* zed-functions.sh, zfs-import, zfs-mount, zfs-zed, smart
  paxcheck.sh, make_gitrev.sh - these scripts were excuded from
  the check until they can be updated and properly tested.

* zfsunlock - only whole values for sleep are allowed.

* vdev_id - removed unneeded locals; use && instead of -a.

* dkms.mkconf, dkms.postbuil - use || instead of -o.

Reviewed-by: InsanePrawn <insane.prawny@gmail.com>
Reviewed-by:  Gabriel A. Devenyi <gdevenyi@gmail.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10755
2020-08-20 13:45:47 -07:00
..
zfs-images@3331601f6d Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
.gitignore Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Add zstd support to zfs 2020-08-20 10:30:06 -07:00
commitcheck.sh bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
common.sh.in ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
cstyle.pl cstyle.pl: echo commands for github workflow 2020-08-13 14:58:53 -07:00
dkms.mkconf Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
dkms.postbuild Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
enum-extract.pl Fix free memory calculation on v3.14+ 2018-02-23 08:50:06 -08:00
kmodtool bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
make_gitrev.sh Add zfs_gitrev.h to the distributed sources 2020-07-22 10:00:40 -07:00
man-dates.sh Correct man page dates 2019-05-08 10:59:32 -07:00
paxcheck.sh Enable shellcheck to run for select scripts 2017-03-09 10:20:15 -08:00
zfs-helpers.sh Adopt pyzfs from ClusterHQ 2018-05-01 10:33:35 -07:00
zfs-tests.sh ZTS: Remove bashisms from zfs-tests.sh 2020-08-07 14:10:48 -07:00
zfs.sh Add zstd support to zfs 2020-08-20 10:30:06 -07:00
zfs2zol-patch.sed Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00
zimport.sh bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
zloop.sh zloop.sh should call ZDB with pool name 2020-03-11 10:02:23 -07:00
zol2zfs-patch.sed Add a script to change file names when upstreaming to OpenZFS/illumos 2016-09-29 21:01:50 -07:00