Azure-Samples / azure-sql-db-fullstack-serverless-kickstart

Fullstack/Jamstack solution with Vue.js, Azure Functions, Azure Static Web apps and Azure SQL.
MIT License
43 stars 100 forks source link

Update azure-deploy.sh to be macOS compatible #15

Closed siddharth-krishna closed 2 years ago

siddharth-krishna commented 2 years ago

MacOS's xargs doesn't have a -d option to specify the delimiter. I'm using the solution proposed in: https://stackoverflow.com/questions/71409366/how-do-i-work-around-macos-x-not-having-xargs-d

yorek commented 2 years ago

I did some research and there are two options, it seems:

1) use the -0 option instead of -d 2) completely change approach and use

set -o allexport
source $FILE
set +o allexport

to handle the ./env file

the second option seems a bit too naive to me so I'm going with the -0. I'll test it ASAP to make sure it works

yorek commented 2 years ago

Merged, thanks!