@@ -323,11 +323,10 @@ Run schema registration first to:
323323** macOS/Linux:**
324324
325325` ` ` bash
326- if [ " $( uname) " = " Darwin" ]; then
327- sed -i ' ' ' s/\r$//' ./infra/scripts/register_schemas.sh
328- else
329- sed -i ' s/\r$//' ./infra/scripts/register_schemas.sh
330- fi
326+ for script in ./infra/scripts/register_schemas.sh ./infra/scripts/post_deployment.sh; do
327+ tmp=" ${script} .tmp"
328+ awk ' { sub(/\r$/, ""); print }' " $script " > " $tmp " && mv " $tmp " " $script "
329+ done
331330bash ./infra/scripts/register_schemas.sh
332331` ` `
333332
@@ -351,11 +350,10 @@ After schema registration completes, upload the sample bundles as a separate exp
351350** macOS/Linux:**
352351
353352` ` ` bash
354- if [ " $( uname) " = " Darwin" ]; then
355- sed -i ' ' ' s/\r$//' ./infra/scripts/upload_sample_data.sh
356- else
357- sed -i ' s/\r$//' ./infra/scripts/upload_sample_data.sh
358- fi
353+ for script in ./infra/scripts/upload_sample_data.sh ./infra/scripts/post_deployment.sh; do
354+ tmp=" ${script} .tmp"
355+ awk ' { sub(/\r$/, ""); print }' " $script " > " $tmp " && mv " $tmp " " $script "
356+ done
359357bash ./infra/scripts/upload_sample_data.sh
360358` ` `
361359
@@ -372,11 +370,10 @@ Run authentication setup as an explicit step after post-deployment data setup:
372370** macOS/Linux:**
373371
374372` ` ` bash
375- if [ " $( uname) " = " Darwin" ]; then
376- sed -i ' ' ' s/\r$//' ./infra/scripts/setup_auth.sh
377- else
378- sed -i ' s/\r$//' ./infra/scripts/setup_auth.sh
379- fi
373+ for script in ./infra/scripts/setup_auth.sh ./infra/scripts/configure_auth.sh; do
374+ tmp=" ${script} .tmp"
375+ awk ' { sub(/\r$/, ""); print }' " $script " > " $tmp " && mv " $tmp " " $script "
376+ done
380377bash ./infra/scripts/setup_auth.sh
381378` ` `
382379
0 commit comments