fix wget
This commit is contained in:
parent
2b64ffc803
commit
516aafff27
@ -24,7 +24,7 @@ if [ "$is_az_automation_acc" = "Yes" ]; then
|
|||||||
if [ "$(command -v curl || echo -n '')" ]; then
|
if [ "$(command -v curl || echo -n '')" ]; then
|
||||||
az_req="curl -s -f -L -H '$HEADER'"
|
az_req="curl -s -f -L -H '$HEADER'"
|
||||||
elif [ "$(command -v wget || echo -n '')" ]; then
|
elif [ "$(command -v wget || echo -n '')" ]; then
|
||||||
az_req="wget -q -O - -H '$HEADER'"
|
az_req="wget -q -O - --header '$HEADER'"
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
|
@ -28,7 +28,7 @@ if [ "$is_ibm_vm" = "Yes" ]; then
|
|||||||
if [ "$(command -v curl || echo -n '')" ]; then
|
if [ "$(command -v curl || echo -n '')" ]; then
|
||||||
ibm_req="curl -s -f -L -H '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
|
ibm_req="curl -s -f -L -H '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
|
||||||
elif [ "$(command -v wget || echo -n '')" ]; then
|
elif [ "$(command -v wget || echo -n '')" ]; then
|
||||||
ibm_req="wget -q -O - -H '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
|
ibm_req="wget -q -O - --header '$TOKEN_HEADER' -H '$ACCEPT_HEADER'"
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
|
@ -23,7 +23,7 @@ if [ "$is_aws_ec2" = "Yes" ]; then
|
|||||||
if [ "$(command -v curl || echo -n '')" ]; then
|
if [ "$(command -v curl || echo -n '')" ]; then
|
||||||
aws_req="curl -s -f -L -H '$HEADER'"
|
aws_req="curl -s -f -L -H '$HEADER'"
|
||||||
elif [ "$(command -v wget || echo -n '')" ]; then
|
elif [ "$(command -v wget || echo -n '')" ]; then
|
||||||
aws_req="wget -q -O - -H '$HEADER'"
|
aws_req="wget -q -O - --header '$HEADER'"
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
|
@ -24,7 +24,7 @@ if [ "$is_az_vm" = "Yes" ]; then
|
|||||||
if [ "$(command -v curl || echo -n '')" ]; then
|
if [ "$(command -v curl || echo -n '')" ]; then
|
||||||
az_req="curl -s -f -L -H '$HEADER'"
|
az_req="curl -s -f -L -H '$HEADER'"
|
||||||
elif [ "$(command -v wget || echo -n '')" ]; then
|
elif [ "$(command -v wget || echo -n '')" ]; then
|
||||||
az_req="wget -q -O - -H '$HEADER'"
|
az_req="wget -q -O - --header '$HEADER'"
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
|
@ -24,7 +24,7 @@ if [ "$is_az_app" = "Yes" ]; then
|
|||||||
if [ "$(command -v curl || echo -n '')" ]; then
|
if [ "$(command -v curl || echo -n '')" ]; then
|
||||||
az_req="curl -s -f -L -H '$HEADER'"
|
az_req="curl -s -f -L -H '$HEADER'"
|
||||||
elif [ "$(command -v wget || echo -n '')" ]; then
|
elif [ "$(command -v wget || echo -n '')" ]; then
|
||||||
az_req="wget -q -O - -H '$HEADER'"
|
az_req="wget -q -O - --header '$HEADER'"
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user