mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 11:30:37 +02:00
add parameter and update usage
This commit is contained in:
parent
772934b9ba
commit
6e1e13738e
2 changed files with 13 additions and 4 deletions
|
@ -2,6 +2,15 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
. /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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue