From 813c8564ee756ad0a51cd5a67750b97292611efe Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Tue, 14 Apr 2020 16:18:23 -0400 Subject: Fix SC2086 note in zpool.d/smart ./cmd/zpool/zpool.d/smart:78:32: note: Double quote to prevent globbing and word splitting. [SC2086] Reported by latest shellcheck on FreeBSD. Reviewed-by: Brian Behlendorf Signed-off-by: Ryan Moeller Closes #10194 --- cmd/zpool/zpool.d/smart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zpool/zpool.d/smart b/cmd/zpool/zpool.d/smart index bd18e9d04..874528d66 100755 --- a/cmd/zpool/zpool.d/smart +++ b/cmd/zpool/zpool.d/smart @@ -75,7 +75,7 @@ if [ -b "$VDEV_UPATH" ] && [ -x "$smartctl_path" ] || [ -n "$samples" ] ; then if [ -n "$samples" ] ; then # cat a smartctl output text file instead of running smartctl # on a vdev (only used for developer testing). - file=$(get_filename_from_dir $samples) + file=$(get_filename_from_dir "$samples") echo "file=$file" raw_out=$(cat "$samples/$file") else -- cgit v1.2.3