From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 3 Apr 2025 02:16:21 +0000 (+0200)
Subject: Fix.
X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/condition?a=commitdiff_plain;h=e24c04072affde2eec227ece5578bcf07fc94d69;p=config

Fix.
---

diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom
index 04ce673..f14c57d 100755
--- a/testing/home/desktop/.local/bin/borgplom
+++ b/testing/home/desktop/.local/bin/borgplom
@@ -61,7 +61,7 @@ _check_args_n() {
     _N_MAX_ARGS="$1"
     shift 1
     if [ "$#" -lt "${_N_MAX_ARGS}" ]; then
-        error_exit "missing arguments ($# instead of ${_N_MAX_ARGS}."
+        error_exit "missing arguments ($# instead of ${_N_MAX_ARGS})."
     fi
     shift "${_N_MAX_ARGS}"
     if [ "$#" -gt 0 ]; then
@@ -76,8 +76,8 @@ HELP_ARGS_backup_keys=' PATH'
 HELP_DESC_backup_keys="copy known keys to PATH/, with their repos' server names as filenames"
 CMDFNC_backup_keys() {
     _check_args_n 1 "$@"
-    _PATH_TARGET_DIR="$1"
-    if [ -e "${_PATH_TARGET_DIR}"] && [ ! -d "${_PATH_TARGET_DIR}" ]; then
+    _PATH_TARGET_DIR=$(realpath "$1")
+    if [ -e "${_PATH_TARGET_DIR}" ] && [ ! -d "${_PATH_TARGET_DIR}" ]; then
         error_exit "non-directory at ${_PATH_TARGET_DIR}"
     fi
     mkdir -p "${_PATH_TARGET_DIR}"