mirror of
https://github.com/fergalmoran/docker-nginx.git
synced 2025-12-22 09:48:01 +00:00
19 lines
267 B
Bash
19 lines
267 B
Bash
#!/bin/bash
|
|
#
|
|
# Basic scripts
|
|
#
|
|
|
|
# 1. Check if .env file exists
|
|
check_env_file() {
|
|
if [ -e .env ]; then
|
|
source .env
|
|
else
|
|
echo
|
|
echo "Please set up your .env file before starting your enviornment."
|
|
echo
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
|