gnu: btrfs-progs: Fix bash completions.
This is a follow-up to commit 9a1c4a981b
. Bash
completions must have the same name as the executable.
* gnu/packages/linux.scm (btrfs-progs)[arguments]: Rename "btrfs-completion"
script to "btrfs".
This commit is contained in:
parent
3971dcbf0e
commit
3ce4e265dd
|
@ -3245,10 +3245,12 @@ and copy/paste text in the console and in xterm.")
|
|||
(lambda _ (zero? (system* "make" "static"))))
|
||||
(add-after 'install 'install-bash-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(install-file "btrfs-completion"
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/etc/bash_completion.d"))
|
||||
#t))
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bashcomp (string-append out "/etc/bash_completion.d")))
|
||||
(mkdir-p bashcomp)
|
||||
(copy-file "btrfs-completion"
|
||||
(string-append bashcomp "/btrfs"))
|
||||
#t)))
|
||||
(add-after 'install 'install-static
|
||||
(let ((staticbin (string-append (assoc-ref %outputs "static")
|
||||
"/bin")))
|
||||
|
|
Loading…
Reference in New Issue