Unverified Commit 453be1f0 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

We need exact match

Otherwise we have a problem
parent c30bfb6c
...@@ -364,7 +364,7 @@ while true; do ...@@ -364,7 +364,7 @@ while true; do
if [[ -n $(dpkg -l | grep linux-headers) ]]; then LIST+=( "Headers_remove" "kernel headers" ); else \ if [[ -n $(dpkg -l | grep linux-headers) ]]; then LIST+=( "Headers_remove" "kernel headers" ); else \
LIST+=( "Headers_install" "kernel headers" ); fi 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 [[ -n $SOURCE_PKG ]]; then
if ls /usr/src/linux-source* 1> /dev/null 2>&1; then LIST+=( "Source_remove" "kernel source" ); else \ if ls /usr/src/linux-source* 1> /dev/null 2>&1; then LIST+=( "Source_remove" "kernel source" ); else \
LIST+=( "Source_install" "kernel source" ); fi LIST+=( "Source_install" "kernel source" ); fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment