We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb69f1f commit 8d739ffCopy full SHA for 8d739ff
1 file changed
scripts/auth_init.sh
@@ -1,10 +1,12 @@
1
- #!/bin/sh
+#!/bin/bash
2
3
+# Load environment variables from a shell script
4
. ./scripts/loadenv.sh
5
-if [ "$AZURE_APP_SAMPLE_ENABLED" = "false" ]; then
6
- echo "AZURE_APP_SAMPLE_ENABLED is false. Exiting auth_init script."
7
- exit 0
+# Check if AZURE_APP_SAMPLE_ENABLED is not set or is "false"
+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
10
fi
11
12
echo 'Running "auth_init.py"'
0 commit comments