feat: initial commit
This commit is contained in:
16
packages/bolt/bindings.sh
Executable file
16
packages/bolt/bindings.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user