mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
shellcheck fixes
This commit is contained in:
parent
3426ffcb20
commit
fa89673fad
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue