From e54953c96146b8a95d2cb172505acbb369351cf1 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 28 Jun 2024 18:39:59 +0200 Subject: [PATCH] reuse sleep, it does not status 1 on exit than read -r -t --- usr/bin/archboot-testsuite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index 81e73ad4d..43a80d3ea 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -91,14 +91,14 @@ for i in $(pacman -Ql $(pacman -Q | sd ' .*' '') | rg -o '/usr/share/licenses/.* done _result license-error.txt echo -e "Starting none tracked files in \e[1m10\e[m seconds... \e[1;92mCTRL-C\e[m to stop now." -read -r -t 10 +sleep 10 _run_test "none tracked files in /usr/lib... this takes a while" for i in $(fd -u -E '/modules/' -E '/udev/' -E 'gconv-modules.cache' -E '/locale-archive' . /usr/lib); do pacman -Qo ${i} &>${_NO_LOG} || echo ${i} >> pacman-error.log done _result pacman-error.log echo -e "Starting pacman database check in \e[1m10\e[m seconds... \e[1;92mCTRL-C\e[m to stop now." -read -r -t 10 +sleep 10 _run_test "pacman database... this takes a while" archboot-not-installed.sh &>>"${_LOG}" _result not-installed.txt