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:
f5170f3
)
List missing tools in file missing_tools
author
Michael Prokop
<mika@grml.org>
Wed, 15 Aug 2012 23:18:59 +0000
(
01:18
+0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 15 Aug 2012 23:18:59 +0000
(
01:18
+0200)
grml-hwinfo
patch
|
blob
|
history
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
52fabd4
..
f550be9
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-84,7
+84,12
@@
if [ -z "$1" ] ; then
echo 'Usage: exectest <binary>'>&2
return 1
else
- test -e "$(which $1)" && return 0 || return 1
+ if test -e "$(which $1)" ; then
+ return 0
+ else
+ grep -q "^$1"'$' missing_tools 2>/dev/null || echo "$1" >> missing_tools
+ return 1
+ fi
fi
}