2023-08-09 11:34:50 +02:00
|
|
|
#!/bin/zsh
|
2022-06-19 17:23:23 +02:00
|
|
|
|
|
|
|
source .env
|
|
|
|
|
|
|
|
while IFS= read -r line; do
|
|
|
|
key=${line%=*}
|
|
|
|
if [ -n "$key" ]; then
|
|
|
|
if [ ${key:0:1} != "#" ]; then
|
|
|
|
val=$(eval echo \$$key)
|
|
|
|
if [ -z "$val" ]; then
|
|
|
|
echo $key
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done < .env.sample
|