mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
shellcheck fixes
This commit is contained in:
parent
74efa02b7d
commit
fd36bf73fc
3 changed files with 5 additions and 1 deletions
|
@ -60,6 +60,7 @@ if [[ -n "${_G_RELEASE}" ]]; then
|
||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
# install custom xorg or wayland
|
# install custom xorg or wayland
|
||||||
|
#shellcheck disable=SC2128
|
||||||
if [[ -n "${_CUSTOM_X}" || -n "${_CUSTOM_WAYLAND}" ]]; then
|
if [[ -n "${_CUSTOM_X}" || -n "${_CUSTOM_WAYLAND}" ]]; then
|
||||||
_custom_wayland_xorg
|
_custom_wayland_xorg
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -42,9 +42,11 @@ _linux_firmware() {
|
||||||
_marvell_firmware() {
|
_marvell_firmware() {
|
||||||
_MARVELL=()
|
_MARVELL=()
|
||||||
for i in $(fd -t f . /lib/modules/"${_RUNNING_KERNEL}" | rg -w 'wireless/marvell'); do
|
for i in $(fd -t f . /lib/modules/"${_RUNNING_KERNEL}" | rg -w 'wireless/marvell'); do
|
||||||
|
#shellcheck disable=SC2207
|
||||||
_MARVELL+=($(basename "${i}" | sd '.ko.*$' ''))
|
_MARVELL+=($(basename "${i}" | sd '.ko.*$' ''))
|
||||||
done
|
done
|
||||||
# check marvell modules if already loaded
|
# check marvell modules if already loaded
|
||||||
|
#shellcheck disable=SC2068
|
||||||
for i in ${_MARVELL[@]}; do
|
for i in ${_MARVELL[@]}; do
|
||||||
if lsmod | rg -qw "${i}"; then
|
if lsmod | rg -qw "${i}"; then
|
||||||
_PACKAGES+=(linux-firmware-marvell)
|
_PACKAGES+=(linux-firmware-marvell)
|
||||||
|
|
|
@ -36,6 +36,7 @@ _run_pacman() {
|
||||||
|
|
||||||
_update_packages() {
|
_update_packages() {
|
||||||
_IGNORE=()
|
_IGNORE=()
|
||||||
|
#shellcheck disable=SC2128
|
||||||
if [[ -n "${_GRAPHIC_IGNORE}" ]]; then
|
if [[ -n "${_GRAPHIC_IGNORE}" ]]; then
|
||||||
#shellcheck disable=SC2068
|
#shellcheck disable=SC2068
|
||||||
for i in ${_GRAPHIC_IGNORE[@]}; do
|
for i in ${_GRAPHIC_IGNORE[@]}; do
|
||||||
|
|
Loading…
Reference in a new issue