diff options
author | bunder2015 <[email protected]> | 2019-02-04 12:07:19 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-02-04 09:07:19 -0800 |
commit | bf6ca0a6313ad09f4b98f774069693c1b36ecc60 (patch) | |
tree | 6adfa8a09605d67cb473d89ce4907b805702081e /scripts/zimport.sh | |
parent | cca14128c956e26486633d50650e11cda89b1d17 (diff) |
shellcheck pass
note: which is non-standard. Use builtin 'command -v' instead. [SC2230]
note: Use -n instead of ! -z. [SC2236]
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: bunder2015 <[email protected]>
Closes #8367
Diffstat (limited to 'scripts/zimport.sh')
-rwxr-xr-x | scripts/zimport.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/zimport.sh b/scripts/zimport.sh index 426c329c9..d7e82fe9f 100755 --- a/scripts/zimport.sh +++ b/scripts/zimport.sh @@ -233,8 +233,8 @@ src_set_vars() { ZFS_URL="$REPO/zfs/tarball/$ZFS_TAG" if [ "$TAG" = "installed" ]; then - ZPOOL_CMD=$(which zpool) - ZFS_CMD=$(which zfs) + ZPOOL_CMD=$(command -v zpool) + ZFS_CMD=$(command -v zfs) ZFS_SH="/usr/share/zfs/zfs.sh" else ZPOOL_CMD="./cmd/zpool/zpool" |