radarr: change sed separator in update script
This commit is contained in:
parent
c7aef6dedb
commit
72850d84f8
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p curl nix-prefetch jq
|
#!nix-shell -i bash -p curl gnused nix-prefetch jq
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ updateHash()
|
||||||
hash=$(nix-prefetch-url --type sha256 $url)
|
hash=$(nix-prefetch-url --type sha256 $url)
|
||||||
sriHash="$(nix to-sri --type sha256 $hash)"
|
sriHash="$(nix to-sri --type sha256 $hash)"
|
||||||
|
|
||||||
sed -i "s/$hashKey = \"[a-zA-Z0-9\/+-=]*\";/$hashKey = \"$sriHash\";/g" "$dirname/default.nix"
|
sed -i "s|$hashKey = \"[a-zA-Z0-9\/+-=]*\";|$hashKey = \"$sriHash\";|g" "$dirname/default.nix"
|
||||||
}
|
}
|
||||||
|
|
||||||
updateVersion()
|
updateVersion()
|
||||||
|
|
Loading…
Reference in New Issue