From 3250e098cd4ecfb5e71b39129454454cb644a83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Ribo=CC=81=20Labrador?= Date: Mon, 25 Mar 2024 18:21:23 +0100 Subject: [PATCH] fix: issue with build script not replacing some files that have been auto-generated. --- externals/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/externals/run.sh b/externals/run.sh index edcae4047..b6a520db2 100755 --- a/externals/run.sh +++ b/externals/run.sh @@ -39,7 +39,7 @@ buildDIDComm() { #This code fails on browser when wasm is first loaded, it can just be ignored #The code will fully work cd "${GenDIDComm}-wasm-browser" - sed -i "/if (typeof input === 'undefined') {/,/}/d" didcomm_js.js + sed -i '' "/if (typeof input === 'undefined') {/,/}/d" didcomm_js.js cd $ExternalsDir git submodule | grep $DIDComm | awk '{print $1}' > "./${DIDComm}.commit" @@ -64,7 +64,7 @@ buildAnonCreds() { #This code fails on browser when wasm is first loaded, it can just be ignored #The code will fully work cd "${GenAnonCreds}-wasm-browser" - sed -i '/if (typeof input === '\''undefined'\'') {/,/}/d' "./${AnonCreds}.js" + sed -i '' "/if (typeof input === 'undefined') {/,/}/d" "./${AnonCreds}.js" cd $ExternalsDir git submodule | grep $AnonCreds | awk '{print $1}' > "./${AnonCreds}.commit"