File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
3
# Exit on error
4
- set -e
4
+ set -euo pipefail
5
5
6
6
# Take argument from command line
7
7
FN_RESOURCE_GROUP=$1 # prisma-e2e-windows or prisma-e2e-linux
@@ -14,7 +14,7 @@ if [ -z "$FN_RESOURCE_GROUP" ]; then
14
14
fi
15
15
16
16
# Ensure the user is logged in
17
- if ! az account show > /dev/null 2>&1 ; then
17
+ if ! az account show & > /dev/null then
18
18
echo " You are not logged into Azure. Please run 'az login' first."
19
19
exit 1
20
20
fi
@@ -25,7 +25,7 @@ echo "Using subscription: $SUBSCRIPTION_ID"
25
25
26
26
# Get all Function Apps in the current subscription
27
27
echo " Fetching all Function Apps in resource group $FN_RESOURCE_GROUP ..."
28
- FUNCTION_APPS=$( az functionapp list --resource-group $FN_RESOURCE_GROUP --query " [].{name:name, resourceGroup:resourceGroup, appInsights:appInsights}" -o json)
28
+ FUNCTION_APPS=$( az functionapp list --resource-group " $FN_RESOURCE_GROUP " --query " [].{name:name, resourceGroup:resourceGroup, appInsights:appInsights}" -o json)
29
29
30
30
# Check if there are any function apps
31
31
if [ " $FUNCTION_APPS " == " []" ]; then
You can’t perform that action at this time.
0 commit comments