diff options
author | Ryan Moeller <[email protected]> | 2020-04-14 16:18:23 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-14 13:18:23 -0700 |
commit | 813c8564ee756ad0a51cd5a67750b97292611efe (patch) | |
tree | fabc5500d92cafe9127be0c1d8b4049e0dadd48e /cmd | |
parent | 6b1139e82c0a96c267752b437a3b14f6787535ec (diff) |
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 <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10194
Diffstat (limited to 'cmd')
-rwxr-xr-x | cmd/zpool/zpool.d/smart | 2 |
1 files changed, 1 insertions, 1 deletions
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 |