Fix syntax error in unpack-channel

This commit is contained in:
Eelco Dolstra 2013-07-12 14:06:05 +02:00
parent aeb810b01e
commit c3f5413e80

View file

@ -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}