diff --git a/usr/bin/archboot-not-installed.sh b/usr/bin/archboot-not-installed.sh index 7ab9429b0..24fb0a79e 100755 --- a/usr/bin/archboot-not-installed.sh +++ b/usr/bin/archboot-not-installed.sh @@ -2,6 +2,15 @@ # SPDX-License-Identifier: GPL-3.0-or-later # created by Tobias Powalowski . /usr/lib/archboot/common.sh +_usage () { + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Check not installed packages\e[m" + echo -e "\e[1m---------------------------------------\e[m" + echo "Check the system for uninstalled packages with pacman." + echo "" + echo -e "Usage: \e[1m${_BASENAME} run\e[m" + exit 0 +} +[[ -z "${1}" || "${1}" != "run" ]] && _usage _archboot_check # consider only license package and locale as uninstalled # it's hard to track manually changes in systemd files diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index cd1f7eeb0..6e1307ede 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -6,11 +6,11 @@ _LOOP="/dev/loop0" _IMG="/test.img" _PASS="/passphrase" _usage () { - echo -e "\e[1mTestsuite for Archboot Environment\e[m" - echo -e "\e[1m---------------------------------------------\e[m" + echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Testsuite\e[m" + echo -e "\e[1m--------------------\e[m" echo "Run automatic tests to detect errors/changes." echo "" - echo -e "usage: \e[1m${_BASENAME} run\e[m" + echo -e "Usage: \e[1m${_BASENAME} run\e[m" exit 0 } _run_test () { @@ -168,7 +168,7 @@ _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." sleep 10 _run_test "pacman database... this takes a while" -archboot-not-installed.sh &>>"${_LOG}" +archboot-not-installed.sh run &>>"${_LOG}" _result not-installed.log echo -e "\e[1mResult:\e[m" if [[ -z "${_TEST_FAIL}" ]]; then