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}\""