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

This commit is contained in:
Your Name 2025-06-22 10:21:10 +12:00
parent c21d7e0717
commit 861995069b

View File

@ -1,14 +1,18 @@
#!/bin/bash #!/bin/bash
set -euo pipefail set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TEMP_DIR=$(mktemp -d)
trap 'rm -rf "${TEMP_DIR}"' EXIT
# get getpkg # get getpkg
TEMP_DIR=$(mktemp -d) GETPKG="${SCRIPT_DIR}/../getpkg/output/getpkg"
if [ ! -f "${GETPKG}" ]; then
ARCH=$(uname -m) ARCH=$(uname -m)
curl -L -s -o "${TEMP_DIR}/getpkg" "https://getbin.xyz/getpkg:latest-${ARCH}" || die "Failed to download getpkg" curl -L -s -o "${TEMP_DIR}/getpkg" "https://getbin.xyz/getpkg:latest-${ARCH}" || die "Failed to download getpkg"
chmod +x "${TEMP_DIR}/getpkg" chmod +x "${TEMP_DIR}/getpkg"
trap 'rm -rf "${TEMP_DIR}"' EXIT
GETPKG="${TEMP_DIR}/getpkg" GETPKG="${TEMP_DIR}/getpkg"
fi
function show_help() { function show_help() {