Skip to content

Commit 5c5d1dc

Browse files
committed
TUN-8629: Cloudflared update on Windows requires running it twice to update
1 parent cd8cb47 commit 5c5d1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cloudflared/updater/workers_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const (
3030
// start the service
3131
// exit with code 0 if we've reached this point indicating success.
3232
windowsUpdateCommandTemplate = `sc stop cloudflared >nul 2>&1
33+
del "{{.OldPath}}"
3334
rename "{{.TargetPath}}" {{.OldName}}
3435
rename "{{.NewPath}}" {{.BinaryName}}
35-
del "{{.OldPath}}"
3636
sc start cloudflared >nul 2>&1
3737
exit /b 0`
3838
batchFileName = "cfd_update.bat"

0 commit comments

Comments
 (0)