From: Christian Heller Date: Wed, 2 Apr 2025 14:31:55 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bdb.prefix%7D%7D/foo.html?a=commitdiff_plain;h=13e9d69755664c3401e59731178a4b338b569d51;p=config Fix. --- diff --git a/testing/home/desktop/.local/bin/borgplom b/testing/home/desktop/.local/bin/borgplom index 8adbf2e..d80a7ae 100755 --- a/testing/home/desktop/.local/bin/borgplom +++ b/testing/home/desktop/.local/bin/borgplom @@ -124,9 +124,10 @@ cmd_orgpull() { mkfifo "${_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)" + _TESTED_REPO="$(cat $(path_repo_location ${_FILENAME}))" + _NAME_SERVER="$(echo ${_TESTED_REPO} | cut -d'/' -f3)" if ping -c1 -W2 "${_NAME_SERVER}" > /dev/null 2>&1; then + _REPO="${_TESTED_REPO}" break else echo "Cannot reach ${_NAME_SERVER}, skipping."