diff --git a/patch-codium.sh b/patch-codium.sh index a7540be..9edbbe7 100755 --- a/patch-codium.sh +++ b/patch-codium.sh @@ -10,4 +10,6 @@ JSON_STRING=$(echo "$JSON_STRING" | jq '.extensionsGallery.serviceUrl = $newVal' JSON_STRING=$(echo "$JSON_STRING" | jq '.extensionsGallery.cacheUrl = $newVal' --arg newVal "$CACHE_URL") JSON_STRING=$(echo "$JSON_STRING" | jq '.extensionsGallery.itemUrl = $newVal' --arg newVal "$ITEM_URL") JSON_STRING=$(echo "$JSON_STRING" | jq 'del(.linkProtectionTrustedDomains)') -echo "$JSON_STRING" | jq '.linkProtectionTrustedDomains' +sudo cp $PRODUCT_JSON $PRODUCT_JSON.bkup +echo "$JSON_STRING" | jq . | sudo tee $PRODUCT_JSON +