Fix FAH client download filter
This commit is contained in:
@@ -33,13 +33,13 @@ RUN \
|
|||||||
netcat-openbsd && \
|
netcat-openbsd && \
|
||||||
echo "**** install foldingathome ****" && \
|
echo "**** install foldingathome ****" && \
|
||||||
if [ "${BUILD_ARCH}" = "aarch64" ]; then \
|
if [ "${BUILD_ARCH}" = "aarch64" ]; then \
|
||||||
ARCH_PATTERN="arm64"; \
|
FAH_WORKER="debian-stable-arm64"; \
|
||||||
else \
|
else \
|
||||||
ARCH_PATTERN="x86_64"; \
|
FAH_WORKER="debian-10-64bit"; \
|
||||||
fi && \
|
fi && \
|
||||||
DOWNLOAD_PATH=$(curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/meta.json" | \
|
DOWNLOAD_PATH=$(curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/meta.json" | \
|
||||||
jq -r --arg arch "${ARCH_PATTERN}" \
|
jq -r --arg worker "${FAH_WORKER}" \
|
||||||
'.[] | select((.package | contains("linux")) and (.package | contains("release")) and (.package | contains($arch)) and (.package | endswith(".tar.bz2"))) | .package' \
|
'.[] | select(.worker == $worker and .mode == "release" and (.package | endswith(".tar.bz2"))) | .package' \
|
||||||
| head -1) && \
|
| head -1) && \
|
||||||
echo "Downloading FAH client: ${DOWNLOAD_PATH}" && \
|
echo "Downloading FAH client: ${DOWNLOAD_PATH}" && \
|
||||||
curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/${DOWNLOAD_PATH}" \
|
curl -fsSL "https://download.foldingathome.org/releases/public/fah-client/${DOWNLOAD_PATH}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user