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

index d80a7ae880ad05f32b2fa70c4659f4d0d334c71b..ea6640a00b88d1826ffab71aae0d16d441443d25 100755 (executable)
@@ -125,7 +125,7 @@ cmd_orgpull() {
     ls -1 "${PATH_BORG_CONF_SECURITY}/" > "${_PATH_PIPE}" &
     while read _FILENAME; do
         _TESTED_REPO="$(cat $(path_repo_location ${_FILENAME}))"
-        _NAME_SERVER="$(echo ${_TESTED_REPO} | cut -d'/' -f3)"
+        _NAME_SERVER="$(echo ${_TESTED_REPO} | cut -d'/' -f3 | cut -d'@' -f2)"
         if ping -c1 -W2 "${_NAME_SERVER}" > /dev/null 2>&1; then
             _REPO="${_TESTED_REPO}"
             break
@@ -135,7 +135,7 @@ cmd_orgpull() {
     done < "${_PATH_PIPE}"
     rm "${_PATH_PIPE}"
     if [ -z "${_REPO}" ]; then
-        error_exit "No repo available."
+        error_exit "no repo being available."
     fi
 
     # determine passphrase and archive