Fix sed usage to expand variables

This commit is contained in:
Erik Ziegler 2018-12-17 22:05:48 +01:00
parent 8d9e4191ed
commit cd6f177bca

View File

@ -12,8 +12,8 @@ cd ..
# Build and copy the StandaloneViewer into the static directory
echo $DEPLOY_PRIME_URL
cd OHIFViewer-react
export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
sed -i 's,https://docs.ohif.org/viewer,${ROOT_URL},g' package.json
export ROOT_URL=$DEPLOY_PRIME_URL/viewer/
sed -i "s,https://docs.ohif.org/viewer,${ROOT_URL},g" package.json
cat package.json
npm install
npm run build