Skip to content

Commit 3e8078f

Browse files
committed
fix reponse var
1 parent abd1f3d commit 3e8078f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

linPEAS/builder/linpeas_parts/functions/check_az_vm.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Functions Used:
99
# Global Variables:
1010
# Initial Functions:
11-
# Generated Global Variables: $is_az_vm
11+
# Generated Global Variables: $is_az_vm, $meta_response
1212
# Fat linpeas: 0
1313
# Small linpeas: 1
1414

@@ -27,15 +27,15 @@ check_az_vm(){
2727
else
2828
# 3. Try querying the Azure Metadata Service for more wide support (e.g. Azure Container Registry tasks need this)
2929
if command -v curl &> /dev/null; then
30-
response=$(curl -s --max-time 2 \
30+
meta_response=$(curl -s --max-time 2 \
3131
"http://169.254.169.254/metadata/identity/oauth2/token")
32-
if echo "$response" | grep -q "Missing"; then
32+
if echo "$meta_response" | grep -q "Missing"; then
3333
is_az_vm="Yes"
3434
fi
3535
elif command -v wget &> /dev/null; then
36-
response=$(wget -qO- --timeout=2 \
36+
meta_response=$(wget -qO- --timeout=2 \
3737
"http://169.254.169.254/metadata/identity/oauth2/token")
38-
if echo "$response" | grep -q "Missing"; then
38+
if echo "$meta_response" | grep -q "Missing"; then
3939
is_az_vm="Yes"
4040
fi
4141
fi

0 commit comments

Comments
 (0)