Skip to content

Commit

Permalink
Create .env if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jessitron committed Jan 18, 2023
1 parent 3f2bec9 commit 2d426d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

if [ -f ".env" ]
if [ ! -f ".env" ]
then
echo "Reading .env"
source .env
echo "Creating .env -- update it with your API key!"
cp .env.example .env
fi

source .env

dotnet run

0 comments on commit 2d426d6

Please sign in to comment.