diff options
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/unpack-channel.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/corepkgs/unpack-channel.nix b/corepkgs/unpack-channel.nix index b309fc41e..f7c521035 100644 --- a/corepkgs/unpack-channel.nix +++ b/corepkgs/unpack-channel.nix @@ -10,7 +10,7 @@ let gzpat="\.gz\$" if [[ "$src" =~ $xzpat ]]; then ${xz} -d < $src | ${tar} xf - ${tarFlags} - else if [[ "$src" =~ $gzpat ]]; then + elif [[ "$src" =~ $gzpat ]]; then ${gzip} -d < $src | ${tar} xf - ${tarFlags} else ${bzip2} -d < $src | ${tar} xf - ${tarFlags} |