Skip to content

Commit

Permalink
Install in version-specific directory
Browse files Browse the repository at this point in the history
  • Loading branch information
efrecon committed Feb 16, 2024
1 parent 72e9218 commit 553de6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runner/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 553de6c

Please sign in to comment.