Browse Source

Improved regex for inserting validatorUrl

pull/36/head
kevi6083 8 years ago
parent
commit
bac56de3ce
  1. 3
      swagger-ui/run.sh

3
swagger-ui/run.sh

@ -17,7 +17,8 @@ else
fi
if [[ -n "$VALIDATOR_URL" ]]; then
sed -i "s|url: url,.*|url: url, validatorUrl: \"${VALIDATOR_URL}\",|g" index.html
sed -i "s|.*validatorUrl:.*$||g" index.html
sed -i "s|\(url: url,.*\)|\1\n validatorUrl: \"${VALIDATOR_URL}\",|g" index.html
fi
exec http-server -p $PORT $*
Loading…
Cancel
Save