shellcheck fixes

This commit is contained in:
Tobias Powalowski 2022-06-21 22:22:07 +02:00
parent 2b85f60f5b
commit 1d0372ddac
4 changed files with 6 additions and 1 deletions

View file

@ -41,6 +41,7 @@ EOF
_start_gnome() {
echo -e "Launching GNOME now, logging is done on \033[1m/dev/tty8\033[0m ..."
#shellcheck disable=SC2129
echo "export XDG_SESSION_TYPE=x11" > /root/.xinitrc
echo "export GDK_BACKEND=x11" >> /root/.xinitrc
echo "export LANG=C.UTF-8" >> /root/.xinitrc

View file

@ -113,6 +113,7 @@ auto_packages() {
if lsmod | grep -qw wl; then
! echo "${PACKAGES}" | grep -qw broadcom-wl && PACKAGES="${PACKAGES} broadcom-wl"
fi
#shellcheck disable=SC2010
if ls /sys/class/net | grep -q wlan; then
! echo "${PACKAGES}" | grep -qw iwd && PACKAGES="${PACKAGES} iwd"
fi

View file

@ -52,7 +52,7 @@ donetwork() {
# bring interface up for essid scan
ip link set dev "${INTERFACE}" up
DIALOG --infobox "Scanning for ESSIDs ..." 3 40
#shellcheck disable=SC2086
#shellcheck disable=SC2086,SC2046
DIALOG --menu "Choose your ESSID:" 14 55 7 \
$(essid_scan _) \
"Hidden" "_" 2>"${ANSWER}" || return 1
@ -75,6 +75,7 @@ donetwork() {
iw dev "${INTERFACE}" scan | grep -q 'Privacy:' && WEP="1"
#shellcheck disable=SC2181
while [[ "${WLAN_SECURITY}" = "" ]]; do
#shellcheck disable=2046
DIALOG --ok-label "Select" --menu "Select encryption type:" 9 40 7 \
$([[ "${WPA}" == "1" ]] && echo "wpa" "WPA/PSK") \
$([[ "${WEP}" == "1" ]] && echo "wep" "WEP") \

View file

@ -285,6 +285,7 @@ _kexec () {
sleep 2
_clean_kernel_cache
rm /{${VMLINUZ},initrd.img}
#shellcheck disable=SC2115
rm -rf /usr/*
while pgrep -x kexec > /dev/null 2>&1; do
_clean_kernel_cache
@ -315,6 +316,7 @@ _prepare_graphic() {
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
echo "Running pacman to install packages: ${_GRAPHIC} ..."
_INSTALL_SOURCE="file:///var/cache/pacman/pkg"
#shellcheck disable=SC2119
_create_pacman_conf
#shellcheck disable=SC2086
pacman -Sy --config ${_PACMAN_CONF} >/dev/null 2>&1 || exit 1