Skip to content

Commit

Permalink
zfs: Fix bash completions with 2.1
Browse files Browse the repository at this point in the history
(cherry picked from commit cf572e0)
  • Loading branch information
ElvishJerricco authored and amarshall committed Sep 10, 2024
1 parent 04c2fec commit ba61046
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/os-specific/linux/zfs/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ let
# Remove tests because they add a runtime dependency on gcc
rm -rf $out/share/zfs/zfs-tests
# Add Bash completions.
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
'' + optionalString (lib.versionOlder version "2.2.6") ''
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
${optionalString (lib.versionOlder version "2.2") ''
# Add Bash completions.
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
''}
'';

postFixup = let
Expand Down

0 comments on commit ba61046

Please sign in to comment.