mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
replace grep with rg
This commit is contained in:
parent
efeea44540
commit
b8562d816a
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ _geteditor() {
|
||||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES}..." 7 75 0
|
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " --gauge "Installing package(s):\n${_PACKAGES}..." 7 75 0
|
||||||
_pacman_error
|
_pacman_error
|
||||||
_dialog --no-mouse --infobox "Enable nano's syntax highlighting on installed system..." 3 70
|
_dialog --no-mouse --infobox "Enable nano's syntax highlighting on installed system..." 3 70
|
||||||
grep -q '^include' "${_DESTDIR}/etc/nanorc" || \
|
rg -q '^include' "${_DESTDIR}/etc/nanorc" || \
|
||||||
echo "include \"/usr/share/nano/*.nanorc\"" >> "${_DESTDIR}/etc/nanorc"
|
echo "include \"/usr/share/nano/*.nanorc\"" >> "${_DESTDIR}/etc/nanorc"
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
|
@ -66,7 +66,7 @@ _set_uefi_parameters() {
|
||||||
_UEFI_SECURE_BOOT=1
|
_UEFI_SECURE_BOOT=1
|
||||||
fi
|
fi
|
||||||
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
if [[ "${_RUNNING_ARCH}" == "x86_64" ]]; then
|
||||||
if grep -q '_IA32_UEFI=1' /proc/cmdline; then
|
if rg -q '_IA32_UEFI=1' /proc/cmdline; then
|
||||||
_EFI_MIXED=1
|
_EFI_MIXED=1
|
||||||
_UEFI_ARCH="IA32"
|
_UEFI_ARCH="IA32"
|
||||||
_SPEC_UEFI_ARCH="ia32"
|
_SPEC_UEFI_ARCH="ia32"
|
||||||
|
|
Loading…
Reference in a new issue