mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
11 lines
273 B
Bash
Executable File
11 lines
273 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Ideally I would use stdin with source, but in older bash versions this
|
|
# wasn't supported properly.
|
|
TEMP_ENV_FILE=`mktemp /tmp/redash_env.XXXXXX`
|
|
sed 's/^REDASH/export REDASH/' .env > $TEMP_ENV_FILE
|
|
source $TEMP_ENV_FILE
|
|
rm $TEMP_ENV_FILE
|
|
|
|
exec "$@"
|