Skip to content

Commit 697fa01

Browse files
committed
Fix auth_update if check
1 parent b378727 commit 697fa01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/auth_update.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$AZURE_USE_AUTHENTICATION = (azd env get-value AZURE_USE_AUTHENTICATION)
2-
if (-not $?) {
2+
if ($AZURE_USE_AUTHENTICATION -ne "true") {
33
Exit 0
44
}
55

scripts/auth_update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
AZURE_USE_AUTHENTICATION=$(azd env get-value AZURE_USE_AUTHENTICATION)
4-
if [ $? -ne 0 ]; then
4+
if [ "$AZURE_USE_AUTHENTICATION" != "true" ]; then
55
exit 0
66
fi
77

0 commit comments

Comments
 (0)