forked from coracle/flotilla
Avoid overwriting env vars
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
temp_env=$(env)
|
||||||
|
|
||||||
if [ -f .env ]; then
|
if [ -f .env ]; then
|
||||||
source .env
|
source .env
|
||||||
fi
|
fi
|
||||||
@@ -8,6 +10,10 @@ if [ -f .env.local ]; then
|
|||||||
source .env.local
|
source .env.local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Avoid overwriting env vars provided directly
|
||||||
|
# https://stackoverflow.com/a/69127685/1467342
|
||||||
|
eval "$temp_env"
|
||||||
|
|
||||||
if [[ $VITE_PLATFORM_LOGO =~ ^https://* ]]; then
|
if [[ $VITE_PLATFORM_LOGO =~ ^https://* ]]; then
|
||||||
curl $VITE_PLATFORM_LOGO > static/logo.png
|
curl $VITE_PLATFORM_LOGO > static/logo.png
|
||||||
export VITE_PLATFORM_LOGO=static/logo.png
|
export VITE_PLATFORM_LOGO=static/logo.png
|
||||||
|
|||||||
Reference in New Issue
Block a user