Merge pull request #117877 from andreisergiu98/fix-radarr-script

radarr: change sed separator in update script
This commit is contained in:
Sandro 2021-03-28 23:44:58 +02:00 committed by GitHub
commit c5aa79a0d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
#!/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
@ -17,7 +17,7 @@ updateHash()
hash=$(nix-prefetch-url --type sha256 $url)
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()