[scripts] drop -r* substring form kernel atom before comparing kernel versions
This commit is contained in:
parent
b84b31433e
commit
a2a7be67e9
@ -40,6 +40,10 @@ echo "-5" | equo conf update
|
||||
kernel_target_pkg="$(equo match -q --installed virtual/linux-binary)"
|
||||
current_kernel=$(equo match --installed "${kernel_target_pkg}" -qv)
|
||||
available_kernel=$(equo match "${kernel_target_pkg}" -qv)
|
||||
# drop revision (-r**)
|
||||
# hack while waiting for --showslot
|
||||
current_kernel="${current_kernel%-r*}"
|
||||
available_kernel="${available_kernel%-r*}"
|
||||
if [ "${current_kernel}" != "${available_kernel}" ] && \
|
||||
[ -n "${available_kernel}" ] && [ -n "${current_kernel}" ]; then
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user