Skip to content

Commit

Permalink
fix bug where init.sh replaces .env with example
Browse files Browse the repository at this point in the history
Fixes:
 - invoking ./scripts/init.sh replaces .env with env.example
  • Loading branch information
abmruman committed Mar 6, 2020
1 parent 04d691a commit c2f1b1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
set -e

echo "Copying env file"
cp env.example .env
# Create env from env.example if it doesn't exist
if [ -f ".env" ]
then
echo -e "env file exists"
else
echo -e "Copying env file"
cp env.example .env
fi

echo "creating acme.json"
touch acme.json
Expand Down

0 comments on commit c2f1b1b

Please sign in to comment.