Skip to content

Commit

Permalink
backblaze-b2: Fix autocompletion support
Browse files Browse the repository at this point in the history
backblaze v1.3.6 incorporates[1] a fix[2] for autocompletion that replaced
`have` function with `_have`. The postInstall hook therefore needs
to be updated to replace `_have`.

[1] https://github.com/Backblaze/B2_Command_Line_Tool#136-august-21-2018
[2] Backblaze/B2_Command_Line_Tool#497
  • Loading branch information
uskudnik authored and domenkozar committed Sep 3, 2018
1 parent 059c0ac commit 882f6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/tools/backblaze-b2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buildPythonApplication rec {
postInstall = ''
mv "$out/bin/b2" "$out/bin/backblaze-b2"
sed 's/^have b2 \&\&$/_have backblaze-b2 \&\&/' -i contrib/bash_completion/b2
sed 's/^_have b2 \&\&$/_have backblaze-b2 \&\&/' -i contrib/bash_completion/b2
sed 's/^\(complete -F _b2\) b2/\1 backblaze-b2/' -i contrib/bash_completion/b2
mkdir -p "$out/etc/bash_completion.d"
Expand Down

0 comments on commit 882f6c9

Please sign in to comment.