From: Christian Heller Date: Wed, 2 Apr 2025 14:27:33 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%22https:/validator.w3.org/balance?a=commitdiff_plain;h=e68f0c0688c70441d4c906e2daf819a472666d29;p=config Fix. --- 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)"