home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 14:31:55 +0000 (16:31 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 2 Apr 2025 14:31:55 +0000 (16:31 +0200)
testing/home/desktop/.local/bin/borgplom

index 8adbf2ef8ebda8594d22c7ce91ffc1ba99088411..d80a7ae880ad05f32b2fa70c4659f4d0d334c71b 100755 (executable)
@@ -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."