projects
/
grml-hwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix shellcheck issue with quoting
[grml-hwinfo.git]
/
grml-hwinfo
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
1b572f4
..
48b9676
100755
(executable)
--- 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
}