diff options
Diffstat (limited to 'opendc-web/opendc-web-ui/scripts/envsubst.sh')
| -rwxr-xr-x | opendc-web/opendc-web-ui/scripts/envsubst.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/opendc-web/opendc-web-ui/scripts/envsubst.sh b/opendc-web/opendc-web-ui/scripts/envsubst.sh deleted file mode 100755 index afc976ed..00000000 --- a/opendc-web/opendc-web-ui/scripts/envsubst.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -auto_envsubst() { - input_path="build/next.template" - output_path="build/next" - - cp -r "$input_path" "$output_path" - find "$output_path" -type f -name '*.js' -exec perl -pi -e 's/%%(NEXT_PUBLIC_[_A-Z0-9]+)%%/$ENV{$1}/g' {} \; -} - -auto_envsubst -exit 0 |
