db/scripts/env.sh

8 lines
113 B
Bash
Raw Normal View History

#! /bin/bash
2023-06-09 01:29:13 +00:00
file=${1:-./.env}
2023-06-22 18:41:49 +00:00
if [ -f "$file" ]; then
while read line; do export "$line"; done < "$file"
fi