From 0983eccacc54000ed25729463fde5f277e6f6fbe Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 1 Jun 2025 23:58:40 +1200 Subject: [PATCH] 'Generic Commit' --- sos/sos | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sos/sos b/sos/sos index 1145ebd..3ae35aa 100755 --- a/sos/sos +++ b/sos/sos @@ -11,7 +11,8 @@ set -euo pipefail # get dropshell TEMP_DIR=$(mktemp -d) -curl -L -s -o "${TEMP_DIR}/dropshell" "https://getbin.xyz/dropshell" +ARCH=$(uname -m) +curl -L -s -o "${TEMP_DIR}/dropshell" "https://getbin.xyz/dropshell.${ARCH}" || die "Failed to download dropshell" chmod +x "${TEMP_DIR}/dropshell" trap 'rm -rf "${TEMP_DIR}"' EXIT DROPSHELL="${TEMP_DIR}/dropshell" @@ -102,7 +103,7 @@ EOF fi # trip whitespace from the file path - LOCALHASH=$("${DROPSHELL}" hash "${FILEPATH}" | tr -d '[:space:]') + LOCALHASH=$("${DROPSHELL}" hash "${file}" | tr -d '[:space:]') echo "Local hash: $LOCALHASH" FILELINE="-F \"file=@${file}\""