mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
parent
c14dee55e8
commit
17cf42d876
|
@ -2,7 +2,7 @@ findTarball() {
|
|||
local suffix i
|
||||
if [ -d "$1/tarballs/" ]; then
|
||||
for suffix in tar.gz tgz tar.bz2 tbz2 tar.xz tar.lzma; do
|
||||
for i in $1/tarballs/*.$suffix; do echo $i; return; done
|
||||
for i in $1/tarballs/*.$suffix; do echo $i; break; done
|
||||
done | sort | head -1
|
||||
return
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue