2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 02:01:55 +00:00

fix: Switch branches, as -n means variable has value

This commit is contained in:
Max Görner 2025-05-09 11:31:56 +02:00
parent 573cd1cb7d
commit 335a0e2e2b

View File

@ -92,9 +92,10 @@ function deploy_driver() {
function list-kernels() {
if [[ -n "${TARGET_KERNEL}" ]]; then
echo "${TARGET_KERNEL}"
else
find /boot -maxdepth 1 -iname "initrd.img*" |
cut -d- -f2
else
echo "${TARGET_KERNEL}"
fi
}