Skip to content

Commit 61e1424

Browse files
authored
fix: dont require .env file (#98)
1 parent 155fe72 commit 61e1424

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

script/main.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ set -euo pipefail
33

44
# Load API keys from the repo root.
55
repoRoot=$(git rev-parse --show-toplevel)
6-
# shellcheck disable=SC1091
7-
source "$repoRoot"/.env
6+
if [ -f "$repoRoot/.env" ]; then
7+
# shellcheck disable=SC1091
8+
source "$repoRoot/.env"
9+
fi
810

911
# Function to handle final preparation steps.
1012
final_preparation() {

0 commit comments

Comments
 (0)