mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
* chore: prep expo example. * Modify Flutter user management example to use .env and initialize supabase * chore: add .env support to swift-user-management * chore: update supabase dependency for swift-user-management example * chore: minor expo updates. * chore: update auth nextjs example. --------- Co-authored-by: dshukertjr <dshukertjr@gmail.com> Co-authored-by: Guilherme Souza <grsouza@pm.me>
17 lines
423 B
Bash
Executable File
17 lines
423 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
env_file="${1:-.env}"
|
|
|
|
if [[ -f "$env_file" ]]; then
|
|
echo "enum DotEnv {"
|
|
while IFS='=' read -r key value || [[ -n "$key" ]]; do
|
|
if [[ -n "$key" && ! "$key" =~ ^# ]]; then
|
|
if [[ -z "$value" ]]; then
|
|
value=$(eval "echo \$$key")
|
|
fi
|
|
echo " static let $key = \"$value\""
|
|
fi
|
|
done < <(grep -v '^#' "$env_file")
|
|
echo "}"
|
|
fi
|