diff options
author | Urban Skudnik <urban.skudnik@gmail.com> | 2018-09-03 20:57:32 +0200 |
---|---|---|
committer | Domen Kožar <domen@enlambda.com> | 2018-09-03 20:45:32 +0100 |
commit | 882f6c96d2121e2762ddcae7080c5a07f33fab95 (patch) | |
tree | f40f5f3ea5a04410ca4d9ca86f09f9a9132469dd /pkgs/development/tools/backblaze-b2 | |
parent | 059c0ac6eb814fba9677c7a2393bd8d870950230 (diff) |
backblaze-b2: Fix autocompletion support
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] https://github.com/Backblaze/B2_Command_Line_Tool/pull/497
Diffstat (limited to 'pkgs/development/tools/backblaze-b2')
-rw-r--r-- | pkgs/development/tools/backblaze-b2/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix index 6b133d959ccb7..79041b055579f 100644 --- a/pkgs/development/tools/backblaze-b2/default.nix +++ b/pkgs/development/tools/backblaze-b2/default.nix @@ -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" |