add APPNAME

This commit is contained in:
Tobias Powalowski 2024-07-25 09:26:28 +02:00
parent de3fdfebc8
commit 4f87a2e58d
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
# created by Tobias Powalowski <tpowa@archlinux.org> # created by Tobias Powalowski <tpowa@archlinux.org>
_APPNAME=${0##*/}
. /etc/archboot/defaults . /etc/archboot/defaults
. /etc/archboot/server-update.conf . /etc/archboot/server-update.conf
. /usr/lib/archboot/common.sh . /usr/lib/archboot/common.sh

View file

@ -12,7 +12,7 @@ _usage () {
echo -e "\e[1m---------------------------------------------\e[m" echo -e "\e[1m---------------------------------------------\e[m"
echo "Run automatic tests to detect errors/changes." echo "Run automatic tests to detect errors/changes."
echo "" echo ""
echo -e "usage: add parameter \e[1m${_APPNAME} run\e[m to execute script." echo -e "usage: \e[1m${_APPNAME} run\e[m"
exit 0 exit 0
} }
_run_test () { _run_test () {