From e68f0c0688c70441d4c906e2daf819a472666d29 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 2 Apr 2025 16:27:33 +0200 Subject: [PATCH] Fix. --- testing/home/desktop/.local/bin/borgplom | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index f3695c3..43346a1 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -11,6 +11,8 @@ CMD_HELP=help CMD_KEYS=keys CMD_ORGPULL=orgpull +PATH_BORG_CONF_SECURITY="${PATH_BORG_CONF}/security" +PATH_BORG_CONF_KEYS="${PATH_BORG_CONF}/keys" location_from_servername() { printf 'ssh://plom@%s/./borg' "$1"; } path_repo_location() { printf '%s' "${PATH_BORG_CONF_SECURITY}/${1}/location"; } @@ -41,9 +43,6 @@ error_exit_with_usage() { # commands -PATH_BORG_CONF_SECURITY="${PATH_BORG_CONF}/security" -PATH_BORG_CONF_KEYS="${PATH_BORG_CONF}/keys" - _check_args_beyond() { _N_MAX_ARGS="$1" _CMD="$2" @@ -123,7 +122,7 @@ cmd_orgpull() { # determine server and repo _PATH_PIPE="$(path_tmp_timestamped 'pipe')" mkfifo "${_PATH_PIPE}" - ls -1 "${_PATH_BORG_CONF_SECURITY}/" > "${_PATH_PIPE}" & + ls -1 "${PATH_BORG_CONF_SECURITY}/" > "${_PATH_PIPE}" & while read _FILENAME; do _REPO="$(cat $(path_repo_location ${_FILENAME}))" _NAME_SERVER="$(echo ${_REPO} | cut -d'/' -f3)" -- 2.30.2