feat(completions): fix cmd
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
shimun 2023-07-12 08:43:49 +02:00
parent b8505790f2
commit 6cb7ce4a78
Signed by: shimun
GPG Key ID: E0420647856EA39E

View File

@ -122,13 +122,14 @@
openssl
];
nativeBuildInputs = with prev; [
pkg-config installShellFiles
pkg-config
installShellFiles
];
installCompletions = ''
installCompletions = cmd: ''
mkdir completions
for shell in bash zsh fish; do
$out/bin/sshcd completions --shell $shell > completions/$shell
installShellCompletion --$shell completions/$shell
$out/bin/${cmd} completions --shell $shell > completions/${cmd}.$shell
installShellCompletion --cmd ${cmd} --$shell completions/${cmd}.$shell
done
'';
in
@ -145,7 +146,7 @@
naersk-lib.buildPackage {
name = "${pname}-client";
postInstall = ''
${installCompletions}
${installCompletions "sshcd"}
'';
inherit root buildInputs nativeBuildInputs;
};