Skip to content

Commit

Permalink
Fix SC2086 note in zpool.d/smart
Browse files Browse the repository at this point in the history
./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
  • Loading branch information
Ryan Moeller authored Apr 14, 2020
1 parent 6b1139e commit 813c856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zpool/zpool.d/smart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 813c856

Please sign in to comment.