mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
replace grep with rg and sd
This commit is contained in:
parent
e994d2ee41
commit
081367c824
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ _timezone () {
|
|||
fi
|
||||
done
|
||||
_ZONES=""
|
||||
for i in $(timedatectl --no-pager list-timezones | grep -w "${_REGION}" | cut -d '/' -f 2 | sort -u); do
|
||||
for i in $(timedatectl --no-pager list-timezones | rg "${_REGION}" | sd '.*/' '' | sort -u); do
|
||||
_ZONES="${_ZONES} ${i} -"
|
||||
done
|
||||
#shellcheck disable=SC2086
|
||||
|
|
Loading…
Reference in a new issue