Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IML Open Source
icinga-checks
Commits
9dd0dada
Commit
9dd0dada
authored
Jul 07, 2022
by
Hahn Axel (hahn)
Browse files
yum: small fix
parent
4b77d4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
check_packages2install-pkgmanager/yum.sh
View file @
9dd0dada
...
...
@@ -26,7 +26,8 @@ function yum.getUpdates(){
function
yum.getPackageList
(){
local
iStart
=
3
# detect number of line containing "Obsoleting Packages"
typeset
-i
iEnd
=
$(
echo
"
$packagemanOut
"
|
grep
-n
'^Obsoleting Packages'
|
cut
-f
1
-d
':'
)
-1
typeset
-i
local
iEnd
iEnd
=
$(
echo
"
$packagemanOut
"
|
grep
-n
'^Obsoleting Packages'
|
cut
-f
1
-d
':'
)
-1
local
sEnd
=
$iEnd
test
"
$iEnd
"
=
"-1"
&&
sEnd
=
'$'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment