From a0e9f7f553b60c3182de4d6129a528eadbb4e85e Mon Sep 17 00:00:00 2001 From: Mukhtar Akere Date: Sun, 10 Aug 2025 11:35:50 +0100 Subject: [PATCH] Fix issues with exit code on windows, fix gh-docs --- .github/workflows/deploy-docs.yml | 2 +- pkg/rclone/killed_windows.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 42051a1..09e2763 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -24,5 +24,5 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: pip install mkdocs-material + - run: cd docs && pip install -r requirements.txt - run: cd docs && mkdocs gh-deploy --force \ No newline at end of file diff --git a/pkg/rclone/killed_windows.go b/pkg/rclone/killed_windows.go index aab6d8c..d9967cd 100644 --- a/pkg/rclone/killed_windows.go +++ b/pkg/rclone/killed_windows.go @@ -18,7 +18,7 @@ func WasHardTerminated(err error) bool { return false } // No Signaled() on Windows; consider "hard terminated" if not success. - return ws.ExitCode() != 0 + return ws.ExitStatus() != 0 // Use the ExitStatus() method } // ExitCode returns the process exit code when available. @@ -31,5 +31,5 @@ func ExitCode(err error) (int, bool) { if !ok { return 0, false } - return ws.ExitCode(), true + return ws.ExitStatus(), true // Use the ExitStatus() method }