mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-30 05:47:47 +00:00
fix: Switch branches, as -n means variable has value
This commit is contained in:
parent
573cd1cb7d
commit
335a0e2e2b
@ -92,9 +92,10 @@ function deploy_driver() {
|
|||||||
|
|
||||||
function list-kernels() {
|
function list-kernels() {
|
||||||
if [[ -n "${TARGET_KERNEL}" ]]; then
|
if [[ -n "${TARGET_KERNEL}" ]]; then
|
||||||
|
echo "${TARGET_KERNEL}"
|
||||||
|
else
|
||||||
find /boot -maxdepth 1 -iname "initrd.img*" |
|
find /boot -maxdepth 1 -iname "initrd.img*" |
|
||||||
cut -d- -f2
|
cut -d- -f2
|
||||||
else
|
|
||||||
echo "${TARGET_KERNEL}"
|
echo "${TARGET_KERNEL}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user