'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 57s

This commit is contained in:
Your Name 2025-06-01 23:58:40 +12:00
parent b75f29b39b
commit 0983eccacc

View File

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