From 553de6cced9b75120b8aa7fe1a57e97a345fa536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Fri, 16 Feb 2024 23:38:02 +0100 Subject: [PATCH] Install in version-specific directory --- runner/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runner/install.sh b/runner/install.sh index 32a9652..2d58cd7 100755 --- a/runner/install.sh +++ b/runner/install.sh @@ -104,13 +104,13 @@ esac # Download and install the runner verbose "Downloading version ${INSTALL_VERSION} of the $INSTALL_ARCH runner" -mkdir -p "$INSTALL_DIR" +mkdir -p "${INSTALL_DIR}/runner-${INSTALL_VERSION}" curl -sSL "https://github.com/${INSTALL_PROJECT}/releases/download/v${INSTALL_VERSION}/actions-runner-linux-${INSTALL_ARCH}-${INSTALL_VERSION}.tar.gz" > "${INSTALL_DIR}/${INSTALL_VERSION}.tgz" verbose "Installing runner to $INSTALL_DIR" -tar -C "$INSTALL_DIR" -zxf "${INSTALL_DIR}/${INSTALL_VERSION}.tgz" +tar -C "${INSTALL_DIR}/runner-${INSTALL_VERSION}" -zxf "${INSTALL_DIR}/${INSTALL_VERSION}.tgz" # Install the dependencies (this is distro specific and aware) -"${INSTALL_DIR}/bin/installdependencies.sh" +"${INSTALL_DIR}/runner-${INSTALL_VERSION}/bin/installdependencies.sh" # Create the directories for the environment. Ensure ownership if a user was # set.