ZTS: Fix incorrect is_physical_device usage

This check isn't meant to be used for command substitution.

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9844
This commit is contained in:
Ryan Moeller
2020-01-16 16:26:26 -05:00
committed by Brian Behlendorf
parent f12e42cccf
commit 31712a7ea8
12 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ function get_device_dir #device
{
typeset device=$1
if ! is_freebsd && ! $(is_physical_device $device) ; then
if ! is_freebsd && ! is_physical_device $device; then
if [[ $device != "/" ]]; then
device=${device%/*}
fi