Skip to content

Commit cf572e0

Browse files
zfs: Fix bash completions with 2.1
1 parent 9bd0b5a commit cf572e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkgs/os-specific/linux/zfs/generic.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ let
182182
# Remove tests because they add a runtime dependency on gcc
183183
rm -rf $out/share/zfs/zfs-tests
184184
185-
# Add Bash completions.
186-
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
187-
'' + optionalString (lib.versionOlder version "2.2.6") ''
188-
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
185+
${optionalString (lib.versionOlder version "2.2") ''
186+
# Add Bash completions.
187+
install -v -m444 -D -t $out/share/bash-completion/completions contrib/bash_completion.d/zfs
188+
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
189+
''}
189190
'';
190191

191192
postFixup = let

0 commit comments

Comments
 (0)