File: explicit_version.patch

package info (click to toggle)
borgbackup2 2.0.0b19.post2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,340 kB
  • sloc: python: 31,228; pascal: 3,510; sh: 216; makefile: 156; tcl: 94; ansic: 21
file content (26 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/scripts/shell_completions/bash/borg
+++ b/scripts/shell_completions/bash/borg
@@ -5,7 +5,7 @@
 # Install:
 # Copy this file to /usr/share/bash-completion/completions/ or /etc/bash_completion.d/
 
-_borg()
+_borg2()
 {
     compopt -o default
     COMPREPLY=()
@@ -212,7 +212,7 @@
         list_archives=1
     fi
     if (( $list_archives )) ; then
-        local archives=$(borg list --short "${repository_name}" 2>/dev/null)
+        local archives=$(borg2 list --short "${repository_name}" 2>/dev/null)
         COMPREPLY=( $(compgen -W "${archives}" -- "${typed_word}" ) )
         return 0
     fi
@@ -220,4 +220,4 @@
     return 0
 }
 
-complete -F _borg borg
+complete -F _borg2 borg2