mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change to rg -F
This commit is contained in:
parent
08ac29c20d
commit
56c060b5ba
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ _find_btrfs_bootloader_subvolume() {
|
|||
_subvolumes_in_use() {
|
||||
_SUBVOLUME_IN_USE=""
|
||||
while read -r i; do
|
||||
echo "${i}" | rg -q "\|btrfs\|" && _SUBVOLUME_IN_USE="${_SUBVOLUME_IN_USE} $(echo "${i}" | cut -d '|' -f 9)"
|
||||
echo "${i}" | rg -F -q "|btrfs|" && _SUBVOLUME_IN_USE="${_SUBVOLUME_IN_USE} $(echo "${i}" | cut -d '|' -f 9)"
|
||||
done < /tmp/.parts
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ _check_btrfs_filesystem_creation() {
|
|||
_SKIP_FILESYSTEM=""
|
||||
#shellcheck disable=SC2013
|
||||
for i in $(rg "${_DEV}[|#]" /tmp/.parts); do
|
||||
if echo "${i}" | rg -q "\|btrfs\|"; then
|
||||
if echo "${i}" | rg -F -q "|btrfs|"; then
|
||||
_FSTYPE="btrfs"
|
||||
_SKIP_FILESYSTEM=1
|
||||
# check on filesystem creation, skip subvolume asking then!
|
||||
|
|
Loading…
Reference in a new issue