Skip to content

Commit

Permalink
condition the use of .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgreen-moj committed Aug 16, 2024
1 parent c3350a9 commit eb3fb87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
# - Nginx Ingress Controller

set -e
source .env

# Check if the .env file exists
if [ -f .env ]; then
# If it exists, source the .env file
source .env
else
echo ".env file not found. Skipping..."
fi

ORANGE='\033[1;33m'
PURPLE='\033[1;35m'
Expand Down

0 comments on commit eb3fb87

Please sign in to comment.