From 0cdefbf7d0ea21b2baa08538c07b81c43c673e79 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 16 Nov 2019 15:35:37 +0400 Subject: [PATCH] Add build check for .env file --- scripts/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 8be7acb51..12d210093 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +ENV_FILE=.env + +## Make sure that the configuration file exists before continuing +if [ ! -f "$ENV_FILE" ]; then + echo "$ENV_FILE does not exist" + exit 1 +fi + next build next export echo 'roadmap.sh' > out/CNAME