replace basename with _APPNAME=${0##*/}

This commit is contained in:
Tobias Powalowski 2023-04-23 21:50:36 +02:00
parent bd3aaa7dc4
commit 3f505d7cef
6 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,7 @@
On the road to 2023.04
On the road to 2023.05
---
2023.04 Highllights:
- grub 2.06.r499.ge67a551a4-1
Environment changes:
- switch to archboot-cpio.sh for image/initramfs building
- switch to ukify script for UKI creation

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# created by Tobias Powalowski <tpowa@archlinux.org>
_APPNAME="$(basename "${0}")"
_APPNAME=${0##*/}
_usage () {
echo "${_BASENAME}: usage"
echo "Check on missing binaries in archboot environment"

View file

@ -5,7 +5,7 @@
# by Tobias Powalowski <tpowa@archlinux.org>
# usage(exitvalue)
# outputs a usage message and exits with value
_APPNAME=$(basename "${0}")
_APPNAME=${0##*/}
_usage()
{
echo -e "\e[1mWelcome to \e[36mARCHBOOT\e[m\e[1m - COPY MOUNTPOINT:\e[m"

View file

@ -5,7 +5,7 @@
# by Tobias Powalowski <tpowa@archlinux.org>
# usage(exitvalue)
# outputs a usage message and exits with value
_APPNAME=$(basename "${0}")
_APPNAME=${0##*/}
_usage()
{
echo -e "\e[1mWelcome to \e[34marchboot's\e[m \e[1mHWSIM:\e[m"

View file

@ -5,7 +5,7 @@
# by Tobias Powalowski <tpowa@archlinux.org>
# usage(exitvalue)
# outputs a usage message and exits with value
_APPNAME=$(basename "${0}")
_APPNAME=${0##*/}
_usage()
{
echo -e "\e[1mWelcome to \e[36mARCHBOOT\e[m \e[1m- RESTORE USB STICK:\e[m"

View file

@ -4,7 +4,7 @@
# by Tobias Powalowski <tpowa@archlinux.org>
# usage(exitvalue)
# outputs a usage message and exits with value
_APPNAME=$(basename "${0}")
_APPNAME=${0##*/}
_usage()
{
echo -e "\e[1mWelcome to \e[36mARCHBOOT\e[m\e[1m - RSYNC BACKUP:\e[m"