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
a41219f4b7
commit
e994d2ee41
1 changed files with 2 additions and 2 deletions
|
@ -18,13 +18,13 @@ _archboot_check
|
||||||
pacman --noconfirm -Sy
|
pacman --noconfirm -Sy
|
||||||
if [[ "${1}" == "base" ]]; then
|
if [[ "${1}" == "base" ]]; then
|
||||||
pacman --noconfirm -S base
|
pacman --noconfirm -S base
|
||||||
_PACKAGE="$(pacman -Qi base | grep Depends | cut -d ":" -f2)"
|
_PACKAGE="$(LANG=C.UTF-8 pacman -Qi base | rg -o 'Depends.*: (.*)' -r '$1')"
|
||||||
else
|
else
|
||||||
_PACKAGE="${1}"
|
_PACKAGE="${1}"
|
||||||
fi
|
fi
|
||||||
echo "${_PACKAGE}" >binary.txt
|
echo "${_PACKAGE}" >binary.txt
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
for i in $(pacman -Ql ${_PACKAGE} | grep "/usr/bin/..*"$ | cut -d' ' -f2); do
|
for i in $(pacman -Ql ${_PACKAGE} | rg -o '/usr/bin/..*$'); do
|
||||||
command -v "${i}" &>"${_NO_LOG}" || echo "${i}" >>binary.txt
|
command -v "${i}" &>"${_NO_LOG}" || echo "${i}" >>binary.txt
|
||||||
done
|
done
|
||||||
# vim: set ft=sh ts=4 sw=4 et:
|
# vim: set ft=sh ts=4 sw=4 et:
|
||||||
|
|
Loading…
Reference in a new issue