Skip to content

Commit 3da75c5

Browse files
committed
improved .env parsing
1 parent b14c844 commit 3da75c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
FILE=".env"
66
if [[ -f $FILE ]]; then
77
echo "Loading from $FILE"
8-
export $(egrep . $FILE | xargs -n1)
8+
export $(egrep "^[^#;]" $FILE | xargs -n1)
99
else
1010
cat << EOF > .env
1111
resourceGroup=""
@@ -24,7 +24,7 @@ fi
2424

2525
FILE="./api/.env"
2626
echo "Loading from $FILE"
27-
export $(egrep . $FILE | xargs -n1)
27+
export $(egrep "^[^#;]" $FILE | xargs -n1)
2828

2929
echo "Creating Resource Group...";
3030
az group create \

0 commit comments

Comments
 (0)