Merge pull request #1252 from bjornfor/channel-rename-fix

unpack-channel.nix: fix 'mv' corner case
This commit is contained in:
Domen Kožar 2017-02-27 13:12:35 +01:00 committed by GitHub
commit f0bbd153c6

View file

@ -15,7 +15,9 @@ let
else
${bzip2} -d < $src | ${tar} xf - ${tarFlags}
fi
mv * $out/$channelName
if [ * != $channelName ]; then
mv * $out/$channelName
fi
if [ -n "$binaryCacheURL" ]; then
mkdir $out/binary-caches
echo -n "$binaryCacheURL" > $out/binary-caches/$channelName