Skip to content

Instantly share code, notes, and snippets.

View manojeeva's full-sized avatar
🔥
Looking For New Challenge

Manoj Kumar manojeeva

🔥
Looking For New Challenge
  • Chennai, TamilNadu, India
View GitHub Profile
@caiangums
caiangums / flutter_run.sh
Created January 19, 2021 18:22
Flutter CLI still doesn't support passing full environment files, just single values. This script group env vars for passing as `--dart-define=` values.
#!/bin/bash
FLUTTER_RUN="flutter run"
if [ ! -z "$1" ]
then
SUPPLIED_ENV_FILE="$1"
while IFS= read -r line
do
FLUTTER_RUN="$FLUTTER_RUN --dart-define=$line"