From 9c0fa708e72c83d169a685d98a74f341af91459c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 4 Apr 2025 16:08:48 +0200 Subject: [PATCH] Fix. --- testing/home/desktop/.local/bin/borgplom | 2 +- testing/home/desktop/.plomlib.sh/print_usage | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index 141c8c2..1f1eccd 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -121,7 +121,7 @@ CMDFNC_help() { } USAGE_ARGS_info='SERVER_NAME [ARCHIVE]' -USAGE_DESC_info="run 'borg info' against repo at \"$(location_from_servername SERVER_NAME)\", optionally only against ARCHIVE; if latter not provided, instead list most recent archives of repo" +USAGE_DESC_info="run 'borg info' against repo at \"$(location_from_servername SERVER_NAME)\", optionally only against ARCHIVE; if latter not provided, list most recent archives of repo" CMDFNC_info() { _check_args_n 1 2 "$@" _TARGET_REPO="$(location_from_servername ${1})" diff --git a/testing/home/desktop/.plomlib.sh/print_usage b/testing/home/desktop/.plomlib.sh/print_usage index 15448ea..b1d6204 100644 --- a/testing/home/desktop/.plomlib.sh/print_usage +++ b/testing/home/desktop/.plomlib.sh/print_usage @@ -1,8 +1,7 @@ print_usage() { - _BIN_NAME="$(basename $0)" echo 'Usage:' echo "${USAGE_LINES}" | while read _LINE; do - echo " ${_BIN_NAME} ${_LINE}" + echo " $(basename $0) ${_LINE}" done echo "\n${USAGE_DESCRIPTION}\n" _var_of() { eval printf '"%s"' '"${'"${1}${2}"'}"'; } -- 2.30.2