diff --git a/bin/manage.sh b/bin/manage.sh index 4edec3d..468354b 100755 --- a/bin/manage.sh +++ b/bin/manage.sh @@ -151,8 +151,8 @@ if [[ -n $up || -n $down || -n $build || -n $pull || -n $maintenance ]]; then pwd # Ensure env file exists so that all compose variables are populated. - if [[ -e "./example.env" && ! -e "./.env" && - ( -f "docker-compose.yml" || -f "compose.yml" ]]; then + if [[ -f "./example.env" && ! -f "./.env" \ + && ( -f "docker-compose.yml" || -f "compose.yml" ]]; then echo "WARNING: .env file was not found, copying example as placeholder." cp -v example.env .env fi