From 72f3f7aa9cc01fec29ef98ebf01d919f5e3bd183 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 13 Feb 2019 16:39:10 +0100 Subject: [PATCH] Fix: Download jq before using it Signed-off-by: Knut Ahlers --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index bbc68eb..a8d2ecf 100755 --- a/build.sh +++ b/build.sh @@ -12,16 +12,16 @@ apt-get install -y --no-install-recommends \ git \ make +# Download recent release of jq +curl -sSfLo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 +chmod 0755 /usr/local/bin/jq + # Download latest release of inner-runner DOWNLOAD=$(curl -sSfL https://api.github.com/repos/repo-runner/repo-runner/releases/latest | jq -r '.assets | .[] | select(.name == "inner-runner_linux_amd64.tar.gz") | .browser_download_url') curl -sSfL "${DOWNLOAD}" | tar -xzf - -C /usr/local/bin mv /usr/local/bin/inner-runner* /usr/local/bin/inner-runner -# Download recent release of jq -curl -sSfLo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -chmod 0755 /usr/local/bin/jq - # Cleanup apt-get autoremove --purge -y rm -rf /var/lib/apt/lists/*