Skip to content

Commit 8d739ff

Browse files
fix: Handle Null values for Sample App (#71)
1 parent eb69f1f commit 8d739ff

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

scripts/auth_init.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

3+
# Load environment variables from a shell script
34
. ./scripts/loadenv.sh
45

5-
if [ "$AZURE_APP_SAMPLE_ENABLED" = "false" ]; then
6-
echo "AZURE_APP_SAMPLE_ENABLED is false. Exiting auth_init script."
7-
exit 0
6+
# Check if AZURE_APP_SAMPLE_ENABLED is not set or is "false"
7+
if [[ -z "$AZURE_APP_SAMPLE_ENABLED" || "$AZURE_APP_SAMPLE_ENABLED" == "false" ]]; then
8+
echo "AZURE_APP_SAMPLE_ENABLED is false. Exiting auth_init script."
9+
exit 0
810
fi
911

1012
echo 'Running "auth_init.py"'

0 commit comments

Comments
 (0)