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
453be1f0
Unverified
Commit
453be1f0
authored
Mar 28, 2020
by
Igor Pečovnik
Committed by
GitHub
Mar 28, 2020
Browse files
We need exact match
Otherwise we have a problem
parent
c30bfb6c
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-submenu
View file @
453be1f0
...
...
@@ -364,7 +364,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
}
|
tail
-1
)
SOURCE_PKG
=
$(
apt-cache
--names-only
search ^linux-source-
*
|
awk
'{ print $1 }'
|
grep
-w
${
BRANCH
}
-
${
LINUXFAMILY
}
|
tail
-1
)
if
[[
-n
$SOURCE_PKG
]]
;
then
if
ls
/usr/src/linux-source
*
1> /dev/null 2>&1
;
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