Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
98ed6619
Unverified
Commit
98ed6619
authored
May 09, 2019
by
Igor Pečovnik
Committed by
GitHub
May 09, 2019
Browse files
Bugfix. Use first not last
parent
d470abb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-submenu
View file @
98ed6619
...
...
@@ -354,7 +354,7 @@ while true; do
if
[[
-n
$(
dpkg
-l
|
grep
linux-headers
)
]]
;
then
LIST+
=(
"Headers"
"Remove kernel headers"
)
;
else
\
LIST+
=(
"Headers"
"Install kernel headers"
)
;
fi
SOURCE_PKG
=
$(
apt-cache
--names-only
search ^linux-source-
*
|
awk
'{ print $1 }'
|
grep
${
BRANCH
}
-
${
LINUXFAMILY
}
|
head
-1
)
SOURCE_PKG
=
$(
apt-cache
--names-only
search ^linux-source-
*
|
awk
'{ print $1 }'
|
grep
${
BRANCH
}
-
${
LINUXFAMILY
}
|
tail
-1
)
if
[[
-n
$SOURCE_PKG
]]
;
then
if
[[
-n
$(
dpkg
-l
|
grep
$SOURCE_PKG
)
]]
;
then
LIST+
=(
"Source"
"Remove kernel source"
)
;
else
\
LIST+
=(
"Source"
"Install kernel source"
)
;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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