diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-02-06 11:07:34 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-02-06 11:07:34 +0800 |
| commit | b9fd6b97aecca7307f4c78f7348b03537c8278b0 (patch) | |
| tree | fc502f13b7627a600cf9001e9da8b0207132b523 /user_install_script.sh | |
| parent | 9f4d58a45c199f5fac1f47c6b5e365ecc0e15a7c (diff) | |
| download | decky-installer-b9fd6b97aecca7307f4c78f7348b03537c8278b0.tar.gz decky-installer-b9fd6b97aecca7307f4c78f7348b03537c8278b0.zip | |
fix: Improve Decky Loader installation verification
The official installer may exit non-zero on success. Verify installation
by checking if `plugin_loader.service` is active.
Co-authored-by: llm-git <llm-git@ttll.de>
Diffstat (limited to 'user_install_script.sh')
| -rw-r--r-- | user_install_script.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/user_install_script.sh b/user_install_script.sh index 609252e..42bdd38 100644 --- a/user_install_script.sh +++ b/user_install_script.sh @@ -31,7 +31,19 @@ if [ "$SKIP_DECKY_INSTALL" != true ]; then exit 1 fi + # The official installer may exit with a non-zero code even when it succeeds. + # Do not abort our script here; verify via systemd instead. + set +e bash "${tmp_script}" + installer_status=$? + set -e + + if systemctl is-active --quiet plugin_loader.service 2>/dev/null; then + echo "Decky Loader install completed (installer exit code: ${installer_status})." + else + echo "Decky Loader install did not complete successfully (installer exit code: ${installer_status})." >&2 + exit 1 + fi fi # Download and verify Decky Loader client (mirror-hosted). |
