Skip to content

Commit c2f1b1b

Browse files
committed
fix bug where init.sh replaces .env with example
Fixes: - invoking ./scripts/init.sh replaces .env with env.example
1 parent 04d691a commit c2f1b1b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/init.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
set -e
33

44
echo "Copying env file"
5-
cp env.example .env
5+
# Create env from env.example if it doesn't exist
6+
if [ -f ".env" ]
7+
then
8+
echo -e "env file exists"
9+
else
10+
echo -e "Copying env file"
11+
cp env.example .env
12+
fi
613

714
echo "creating acme.json"
815
touch acme.json

0 commit comments

Comments
 (0)