projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc34c5d
)
Fix shellcheck issue with quoting
author
Michael Prokop
<mika@grml.org>
Thu, 19 Nov 2015 14:20:25 +0000
(15:20 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 19 Nov 2015 14:20:31 +0000
(15:20 +0100)
grml-hwinfo
patch
|
blob
|
history
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
}