shellcheck fixes

This commit is contained in:
Tobias Powalowski 2024-06-28 22:26:42 +02:00
parent 3426ffcb20
commit fa89673fad
3 changed files with 3 additions and 2 deletions

View file

@ -120,6 +120,7 @@ _auto_testing()
{
if rg -q '^\[core-testing' /etc/pacman.conf; then
_progress "53" "Enable [testing] repository on installed system..."
#shellcheck disable=SC2016
sd '^#(\[[c,e].*-testing\]\n)#' '$1' "${_DESTDIR}"/etc/pacman.conf
sleep 2
fi

View file

@ -421,7 +421,7 @@ _createmd()
while [[ -z "${_RAIDDEV}" ]]; do
_dialog --inputbox "Enter the node name for the raiddevice:\n/dev/md[number]\n/dev/md0\n/dev/md1\n\n" 12 50 "/dev/md0" 2>"${_ANSWER}" || return 1
_RAIDDEV=$(cat "${_ANSWER}")
if rg -q "^${_RAIDDEV//\/dev\//}" /proc/mdstat 2>${_NO_LOG}; then
if rg -q "^${_RAIDDEV//\/dev\//}" /proc/mdstat 2>"${_NO_LOG}"; then
_dialog --msgbox "ERROR: You have defined 2 identical node names! Please enter another name." 8 65
_RAIDDEV=""
fi

View file

@ -124,7 +124,7 @@ _auto_packages() {
fi
#shellcheck disable=SC2010
# Add iwd, if wlan is detected
if ls /sys/class/net | rg -q 'wlan'; then
if fd . /sys/class/net | rg -q 'wlan'; then
! echo "${_PACKAGES}" | rg -qw 'iwd' && _PACKAGES="${_PACKAGES} iwd"
fi
# Add broadcom-wl, if module is detected