mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +00:00
17 lines
400 B
Bash
17 lines
400 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
bindings=""
|
||
|
|
||
|
while IFS= read -r line || [ -n "$line" ]; do
|
||
|
if [[ ! "$line" =~ ^# ]] && [[ -n "$line" ]]; then
|
||
|
name=$(echo "$line" | cut -d '=' -f 1)
|
||
|
value=$(echo "$line" | cut -d '=' -f 2-)
|
||
|
value=$(echo $value | sed 's/^"\(.*\)"$/\1/')
|
||
|
bindings+="--binding ${name}=${value} "
|
||
|
fi
|
||
|
done < .env.local
|
||
|
|
||
|
bindings=$(echo $bindings | sed 's/[[:space:]]*$//')
|
||
|
|
||
|
echo $bindings
|