Fix shellcheck issue with quoting
authorMichael Prokop <mika@grml.org>
Thu, 19 Nov 2015 14:20:25 +0000 (15:20 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 19 Nov 2015 14:20:31 +0000 (15:20 +0100)
grml-hwinfo

index 1b572f4..48b9676 100755 (executable)
@@ -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
 }