about summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-07-12T12·06+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-07-12T12·06+0200
commitc3f5413e806a22d3e664416649687e331b14f8b9 (patch)
treeb894a2aca42437b3d6635e3e238fee5f2befbf07 /corepkgs
parentaeb810b01e17d040f9592681ee271f15874dce50 (diff)
Fix syntax error in unpack-channel
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/unpack-channel.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/corepkgs/unpack-channel.nix b/corepkgs/unpack-channel.nix
index b309fc41ec01..f7c521035428 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}