mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
switch sleep to read -t
This commit is contained in:
parent
7eaf1af8f7
commit
12bdf9d093
1 changed files with 3 additions and 3 deletions
|
@ -109,7 +109,7 @@ _progress_wait() {
|
|||
_progress "${2}" "${3}"
|
||||
fi
|
||||
_COUNT="$((_COUNT+1))"
|
||||
sleep "${4}"
|
||||
read -t "${4}"
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -311,11 +311,11 @@ _cachedir_check() {
|
|||
_pacman_keyring() {
|
||||
# pacman-key process itself
|
||||
while pgrep -x pacman-key &>"${_NO_LOG}"; do
|
||||
sleep 1
|
||||
read -t 1
|
||||
done
|
||||
# gpg finished in background
|
||||
while pgrep -x gpg &>"${_NO_LOG}"; do
|
||||
sleep 1
|
||||
read -t 1
|
||||
done
|
||||
if [[ -e /etc/systemd/system/pacman-init.service ]]; then
|
||||
systemctl stop pacman-init.service
|
||||
|
|
Loading…
Reference in a new issue