From 882f6c96d2121e2762ddcae7080c5a07f33fab95 Mon Sep 17 00:00:00 2001 From: Urban Skudnik Date: Mon, 3 Sep 2018 20:57:32 +0200 Subject: [PATCH] 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 --- pkgs/development/tools/backblaze-b2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix index 6b133d959ccb..79041b055579 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"