mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Fix GCE typo in test output
This commit is contained in:
parent
4e7fd98763
commit
4f31d322a4
@ -156,7 +156,7 @@ if [ "${remote}" = true ] ; then
|
|||||||
else
|
else
|
||||||
# Refresh sudo credentials if needed
|
# Refresh sudo credentials if needed
|
||||||
if ping -c 1 -q metadata.google.internal &> /dev/null; then
|
if ping -c 1 -q metadata.google.internal &> /dev/null; then
|
||||||
echo 'Running on CGE, not asking for sudo credentials'
|
echo 'Running on GCE, not asking for sudo credentials'
|
||||||
elif sudo --non-interactive "$(which bash)" -c true 2> /dev/null; then
|
elif sudo --non-interactive "$(which bash)" -c true 2> /dev/null; then
|
||||||
# if we can run bash without a password, it's a pretty safe bet that either
|
# if we can run bash without a password, it's a pretty safe bet that either
|
||||||
# we can run any command without a password, or that sudo credentials
|
# we can run any command without a password, or that sudo credentials
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
# Refresh sudo credentials if needed
|
# Refresh sudo credentials if needed
|
||||||
if ping -c 1 -q metadata.google.internal &> /dev/null; then
|
if ping -c 1 -q metadata.google.internal &> /dev/null; then
|
||||||
echo 'Running on CGE, not asking for sudo credentials'
|
echo 'Running on GCE, not asking for sudo credentials'
|
||||||
elif sudo --non-interactive "$(which bash)" -c true 2> /dev/null; then
|
elif sudo --non-interactive "$(which bash)" -c true 2> /dev/null; then
|
||||||
# if we can run bash without a password, it's a pretty safe bet that either
|
# if we can run bash without a password, it's a pretty safe bet that either
|
||||||
# we can run any command without a password, or that sudo credentials
|
# we can run any command without a password, or that sudo credentials
|
||||||
|
Loading…
Reference in New Issue
Block a user