coder: fix update.sh script according to new structure (#399444)

This commit is contained in:
Weijia Wang
2025-04-22 23:34:15 +02:00
committed by GitHub
+2 -2
View File
@@ -23,7 +23,7 @@ update_version_and_hashes() {
# Update version number, using '#' as delimiter
sed -i "/${channel} = {/,/};/{
s#^\(\s*\)version = .*#\1version = \"$version\";#
}" ./default.nix
}" ./package.nix
# Update hashes for each architecture
for ARCH in "${!ARCHS[@]}"; do
@@ -37,7 +37,7 @@ update_version_and_hashes() {
# Update the Nix file with the new hash, using '#' as delimiter and preserving indentation
sed -i "/${channel} = {/,/};/{
s#^\(\s*\)${ARCH} = .*#\1${ARCH} = \"${SRI_HASH}\";#
}" ./default.nix
}" ./package.nix
done
}