Skip to content

Commit 50e9091

Browse files
committed
updating script to be macOS friendly
1 parent 6eda399 commit 50e9091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/azure-create-sql-db.sh

Lines changed: 1 addition & 1 deletion
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+
eval $(egrep "^[^#;]" $FILE | tr '\n' '\0' | xargs -0 -n1 | sed 's/^/export /')
99
else
1010
echo "Enviroment file not detected."
1111
echo "Please make sure there is a .env file in the sample root folder and run the script again."

0 commit comments

Comments
 (0)