Skip to content

Commit 1c85dd2

Browse files
committed
setup script fix
1 parent d0de49e commit 1c85dd2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

setup_backend.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ read -rp "Enter your E2B_TEMPLATE ID (default: vh7kehbtf0t4xbx9ec9u, OpenTechBio
1818
E2B_TEMPLATE=${E2B_TEMPLATE:-vh7kehbtf0t4xbx9ec9u}
1919
read -rp "Enter your OPENAI_API_KEY (e.g., sk-...): " OPENAI_API_KEY
2020

21-
BACKEND_ENV_PATH=backend/functions"
21+
BACKEND_ENV_PATH="backend/functions"
2222
mkdir -p "$BACKEND_ENV_PATH"
2323

2424
# Write out the .env file
2525
cat <<EOF > "$BACKEND_ENV_PATH/.env"
2626
# This is a template environment file for your backend (Firebase Functions).
2727
# Replace placeholders with your real keys.
2828
29-
E2B_API_KEY=$E2B_API_KEY
30-
E2B_TEMPLATE=$E2B_TEMPLATE
31-
OPENAI_API_KEY=$OPENAI_API_KEY
29+
E2B_API_KEY=${E2B_API_KEY}
30+
E2B_TEMPLATE=${E2B_TEMPLATE}
31+
OPENAI_API_KEY=${OPENAI_API_KEY}
3232
EOF
3333

3434
echo
3535
echo "============================================================"
3636
echo "Your .env file has been created at:"
3737
echo " $BACKEND_ENV_PATH/.env"
3838
echo "============================================================"
39-
echo "Setup complete! You can now deploy or run your Firebase functions."
39+
echo "Setup complete! You can now deploy or run your Firebase functions."
40+
echo

0 commit comments

Comments
 (0)