20 lines
335 B
Bash
Executable File
20 lines
335 B
Bash
Executable File
#!/bin/sh
|
|
# Enable exporting variables
|
|
set -a
|
|
|
|
# Source the default env variables
|
|
echo "Sourcing build environment"
|
|
source .env
|
|
|
|
# If there is a .env.local present, source it
|
|
echo "Sourcing custom environment"
|
|
if [ -f .env.local ]; then
|
|
source ./.env.local
|
|
fi
|
|
|
|
# Disable exporting variables
|
|
set +a
|
|
|
|
# Run the given command
|
|
exec "$@"
|