awscli2: fix completion

Generate index file for shell completion

Fix #103709

See-also: https://github.com/Homebrew/homebrew-core/pull/57547/files
This commit is contained in:
Quentin Revel 2020-11-13 16:44:16 +01:00 committed by Peter Hoeg
parent a9f8357e2e
commit 8582f5dbc9

View File

@ -69,6 +69,9 @@ with py.pkgs; buildPythonApplication rec {
];
postInstall = ''
mkdir -p $out/${python3.sitePackages}/awscli/data
${python3.interpreter} scripts/gen-ac-index --index-location $out/${python3.sitePackages}/awscli/data/ac.index
mkdir -p $out/share/bash-completion/completions
echo "complete -C $out/bin/aws_completer aws" > $out/share/bash-completion/completions/awscli