grub: change variable substitution

This commit is contained in:
teldra 2023-06-13 08:39:34 +02:00
parent dcc2d14078
commit 380a768d8d
1 changed files with 1 additions and 1 deletions

View File

@ -100,6 +100,6 @@ config() {
fi
lv=$(xbps-query linux|grep pkgver|awk '{print $2}')
lv1="${lv//-/}"
lv2="${lv1%_*}"
lv2="${lv1%%_*}"
xbps-reconfigure -f "${lv2}"
}