Tidy
This commit is contained in:
parent
3f4e24449b
commit
290c7d44fc
1 changed files with 1 additions and 2 deletions
|
@ -49,7 +49,7 @@ get_version() {
|
||||||
echo "$1" | grep -oP -m 1 '(?<=/v)[\d.\w]+(?=/)'
|
echo "$1" | grep -oP -m 1 '(?<=/v)[\d.\w]+(?=/)'
|
||||||
}
|
}
|
||||||
|
|
||||||
# nix-prefect-url seems to be uncompressing the archive then taking the hash
|
# nix-prefetch-url seems to be uncompressing the archive then taking the hash
|
||||||
# so just get the hash from fetchurl
|
# so just get the hash from fetchurl
|
||||||
sri_get() {
|
sri_get() {
|
||||||
local ouput sri
|
local ouput sri
|
||||||
|
@ -63,7 +63,6 @@ sri_get() {
|
||||||
echo "$sri"
|
echo "$sri"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for sys in darwin linux; do
|
for sys in darwin linux; do
|
||||||
url=$(resolve_url ${sys})
|
url=$(resolve_url ${sys})
|
||||||
version=$(get_version "${url}")
|
version=$(get_version "${url}")
|
||||||
|
|
Loading…
Reference in a new issue