mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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
|
||||
# Refresh sudo credentials if needed
|
||||
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
|
||||
# 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
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
# Refresh sudo credentials if needed
|
||||
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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user