projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tighten grep
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-running-kernel
diff --git
a/dsa-nagios-checks/checks/dsa-check-running-kernel
b/dsa-nagios-checks/checks/dsa-check-running-kernel
index
a82774c
..
df78397
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-running-kernel
+++ b/
dsa-nagios-checks/checks/dsa-check-running-kernel
@@
-88,7
+88,7
@@
get_avail() {
local imagename=0
# --no-all-versions show shows only the candidate
local imagename=0
# --no-all-versions show shows only the candidate
- for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} |
grep Depends
| awk '{print $2}' | sort -u); do
+ for vers in $(apt-cache --no-all-versions show ${prefix}-image-${metavers} |
egrep '^Depends:'
| awk '{print $2}' | sort -u); do
if dpkg --compare-versions $vers gt $imagename; then
imagename=$vers
fi
if dpkg --compare-versions $vers gt $imagename; then
imagename=$vers
fi