container-server/tasks/validate.sh

16 lines
287 B
Bash
Raw Normal View History

#!/bin/zsh
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