From c5989b9ae42a5cf640f17e354be37f40088f267c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 19 Nov 2015 15:20:25 +0100 Subject: [PATCH] Fix shellcheck issue with quoting --- grml-hwinfo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-hwinfo b/grml-hwinfo index 1b572f4..48b9676 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -156,7 +156,7 @@ checkdisk() { while read _ _ _ device _ ; do isdisk=1 # skip CDROMs - [ "$(stat -c %G /dev/$device)" = "disk" ] || isdisk=0 + [ "$(stat -c %G /dev/"${device}")" = "disk" ] || isdisk=0 [ "$isdisk" -eq 1 ] && echo "$device" done } -- 2.1.4