diff options
| author | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-04 15:33:48 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2026-02-04 15:33:48 +0000 |
| commit | e5dad45badbb2bb2f15b828140a35ae7cfc82f77 (patch) | |
| tree | 5bafef22c2f107026ada92c751364a602d125227 /user_install_script.sh | |
| parent | 9ab34cd1d5b6190fc36eae63f3a5ca214adea3ae (diff) | |
| download | decky-installer-e5dad45badbb2bb2f15b828140a35ae7cfc82f77.tar.gz decky-installer-e5dad45badbb2bb2f15b828140a35ae7cfc82f77.zip | |
Simplify checksum verification to use sha256sum directly
Co-authored-by: tranch <5999732+tranch@users.noreply.github.com>
Diffstat (limited to 'user_install_script.sh')
| -rw-r--r-- | user_install_script.sh | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/user_install_script.sh b/user_install_script.sh index cb76b57..609252e 100644 --- a/user_install_script.sh +++ b/user_install_script.sh @@ -51,21 +51,10 @@ if ! curl -fsSL "https://${DECKY_MIRROR_HOST}/AeroCore-IO/decky-installer/releas fi # Verify the checksum -if command -v sha256sum >/dev/null 2>&1; then - if ! (cd /tmp && sha256sum -c decky_client.py.sha256); then - echo "Checksum verification failed for Decky Loader client. File may be compromised." >&2 - rm -f "${decky_client}" "${decky_client_checksum}" - exit 1 - fi -elif command -v shasum >/dev/null 2>&1; then - if ! (cd /tmp && shasum -a 256 -c decky_client.py.sha256); then - echo "Checksum verification failed for Decky Loader client. File may be compromised." >&2 - rm -f "${decky_client}" "${decky_client_checksum}" - exit 1 - fi -else - echo "Warning: No checksum tool available (sha256sum or shasum). Skipping integrity verification." >&2 - echo "This is a security risk. Consider installing sha256sum or shasum." >&2 +if ! (cd /tmp && sha256sum -c decky_client.py.sha256); then + echo "Checksum verification failed for Decky Loader client. File may be compromised." >&2 + rm -f "${decky_client}" "${decky_client_checksum}" + exit 1 fi # Install the plugin |
