From 2dddae3bd7efe8a3910d39951ee5a7ba645363c8 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 28 Jun 2024 18:40:27 +0200 Subject: [PATCH] reuse sleep, it does not status 1 on exit than read -r -t --- usr/lib/archboot/common.sh | 6 +++--- usr/lib/archboot/login.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/lib/archboot/common.sh b/usr/lib/archboot/common.sh index 75018bc14..5a66b38b1 100644 --- a/usr/lib/archboot/common.sh +++ b/usr/lib/archboot/common.sh @@ -110,7 +110,7 @@ _progress_wait() { _progress "${2}" "${3}" fi _COUNT="$((_COUNT+1))" - read -r -t "${4}" + sleep "${4}" done } @@ -304,11 +304,11 @@ _cachedir_check() { _pacman_keyring() { # pacman-key process itself while pgrep -x pacman-key &>"${_NO_LOG}"; do - read -r -t 1 + sleep 1 done # gpg finished in background while pgrep -x gpg &>"${_NO_LOG}"; do - read -r -t 1 + sleep 1 done if [[ -e /etc/systemd/system/pacman-init.service ]]; then systemctl stop pacman-init.service diff --git a/usr/lib/archboot/login.sh b/usr/lib/archboot/login.sh index a44e7b2ff..6fdf2fdcd 100644 --- a/usr/lib/archboot/login.sh +++ b/usr/lib/archboot/login.sh @@ -62,10 +62,10 @@ if [[ "${_TTY}" = "tty1" ]]; then rm -r /run/nextroot/sysroot &>"${_NO_LOG}" rm /run/nextroot/sysroot/init &>"${_NO_LOG}" _progress "100" "System is ready." - read -r -t 1 + sleep 1 else while true; do - read -r -t 1 + sleep 1 done fi }