diff --git a/usr/bin/archboot-detect-vconsole.sh b/usr/bin/archboot-detect-vconsole.sh index dadb39339..9bce845ee 100755 --- a/usr/bin/archboot-detect-vconsole.sh +++ b/usr/bin/archboot-detect-vconsole.sh @@ -5,7 +5,7 @@ # by Tobias Powalowski # . /usr/lib/archboot/common.sh -usage() { +_usage() { echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Detect Big Screen\e[m" echo -e "\e[1m----------------\e[m" echo "Detect big screen on boot and change to bigger font afterwards." diff --git a/usr/bin/archboot-secureboot-keys.sh b/usr/bin/archboot-secureboot-keys.sh index b0bb0dd4d..c7292ebf7 100755 --- a/usr/bin/archboot-secureboot-keys.sh +++ b/usr/bin/archboot-secureboot-keys.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # created by Tobias Powalowski . /usr/lib/archboot/common.sh -usage () { +_usage () { echo -e "\e[1m\e[36mArchboot\e[m\e[1m - Generate Secure Boot keys, MOK files\e[m" echo -e "\e[1m-----------------------------------------------\e[m" echo "This script generates all needed keys for a Secure Boot setup." @@ -12,18 +12,18 @@ usage () { echo -e "Usage: \e[1m${_BASENAME} -name= \e[m" exit 0 } -[[ -z "${1}" || -z "${2}" ]] && usage +[[ -z "${1}" || -z "${2}" ]] && _usage _DIR="${2}" while [ $# -gt 0 ]; do - case ${1} in - -name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;; - -h|--h|?) usage ;; + case ${1} in + -name=*|--name=*) NAME="$(echo "${1}" | rg -o '=(.*)' -r '$1')" ;; + -h|--h|?) _usage ;; esac - shift + shift done if [[ -z "${NAME}" ]]; then echo "ERROR: no name specified" - usage + _usage #shellcheck disable=2317 exit 1 fi