Skip to content

Commit a0e9f7f

Browse files
committed
Fix issues with exit code on windows, fix gh-docs
1 parent 4be4f6b commit a0e9f7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
path: .cache
2525
restore-keys: |
2626
mkdocs-material-
27-
- run: pip install mkdocs-material
27+
- run: cd docs && pip install -r requirements.txt
2828
- run: cd docs && mkdocs gh-deploy --force

pkg/rclone/killed_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func WasHardTerminated(err error) bool {
1818
return false
1919
}
2020
// No Signaled() on Windows; consider "hard terminated" if not success.
21-
return ws.ExitCode() != 0
21+
return ws.ExitStatus() != 0 // Use the ExitStatus() method
2222
}
2323

2424
// ExitCode returns the process exit code when available.
@@ -31,5 +31,5 @@ func ExitCode(err error) (int, bool) {
3131
if !ok {
3232
return 0, false
3333
}
34-
return ws.ExitCode(), true
34+
return ws.ExitStatus(), true // Use the ExitStatus() method
3535
}

0 commit comments

Comments
 (0)