From cd6f177bca2cf2258d3cd5a148500715ac759b04 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Mon, 17 Dec 2018 22:05:48 +0100 Subject: [PATCH] Fix sed usage to expand variables --- generateStaticSite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generateStaticSite.sh b/generateStaticSite.sh index 03366fbe6..3be3e264f 100755 --- a/generateStaticSite.sh +++ b/generateStaticSite.sh @@ -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