nix-prefetch-zip: keep downloaded file extension
Keep the correct file extension on the downloaded file so that `unpackFile` will know how to unpack it correctly.
This commit is contained in:
parent
dd89ee1c3b
commit
55544c1e68
@ -73,7 +73,7 @@ mkdir -p $unpackDirTmp
|
|||||||
unpackDir=$tmp/unpacked/$name
|
unpackDir=$tmp/unpacked/$name
|
||||||
mkdir -p $unpackDir
|
mkdir -p $unpackDir
|
||||||
|
|
||||||
downloadedFile=$tmp/$name
|
downloadedFile=$tmp/$(basename "$url")
|
||||||
|
|
||||||
unpackFile() {
|
unpackFile() {
|
||||||
local curSrc="$1"
|
local curSrc="$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user