Commit 8ff016b9 authored by Carlo Landmeter's avatar Carlo Landmeter

admin: use correct program and uppercase globals

parent 86fc81da
......@@ -2,7 +2,9 @@
set -eu
readonly cmd=${1:-help}
readonly CMD=${1:-help}
readonly VERSION=unknown
readonly PROGRAM=${0##*/}
die() {
echo "$@" >&2
......@@ -45,7 +47,7 @@ multiarch() {
multiarch_usage() {
cat <<- EOF
dabuild: version (unknown)
$PROGRAM ($VERSION)
Available subcommands:
enable: enable multi-arch support via binfmt_misc
......@@ -56,7 +58,7 @@ multiarch_usage() {
usage() {
cat <<- EOF
dabuild: version (unknown)
$PROGRAM ($VERSION)
Available commands:
config: access abuild configuration
......@@ -66,7 +68,7 @@ usage() {
EOF
}
case $cmd in
case $CMD in
config) manage_config;;
volumes) list_volumes;;
multiarch) multiarch "$@";;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment