From e5dad45badbb2bb2f15b828140a35ae7cfc82f77 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:33:48 +0000 Subject: Simplify checksum verification to use sha256sum directly Co-authored-by: tranch <5999732+tranch@users.noreply.github.com> --- user_install_script.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'user_install_script.sh') 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 -- cgit v1.2.3