mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
GCE/Windows: use "return" as "continue" for ForEach-Object
Using `continue` would exit the current processing scope. https://blogs.technet.microsoft.com/msftcam/2015/03/17/powershell-gotcha-foreach-object-and-continue/
This commit is contained in:
parent
8cf05f514c
commit
48cc836717
@ -206,7 +206,7 @@ while($true) {
|
||||
if (-not (Test-Path $user_dir)) {
|
||||
# If for some reason Create-NewProfile failed to create the user profile
|
||||
# directory just continue on to the next user.
|
||||
continue
|
||||
return
|
||||
}
|
||||
|
||||
# NOTE: there is a race condition here where someone could try to ssh to
|
||||
|
Loading…
Reference in New Issue
Block a user