Skip to content

Commit

Permalink
debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke committed Dec 16, 2024
1 parent a398325 commit 4493661
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/env-loader/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,18 @@ runs:
# Install the tool
echo "Installing to ${INSTALL_DIR}..."
echo "DEBUG LOG"
echo "command -v sudo: $(command -v sudo)"
echo "Shell: ${SHELL:-NOT SET}"
if ! command -v sudo; then
# Ensure the sudo "command" exists
echo "Setting alias"
alias sudo=""
else
echo "Not setting alias"
fi
sudo mkdir -pv -m 755 "${INSTALL_DIR}"
sudo tar -xzvf "${DOWNLOAD_PATH}" -C "${INSTALL_DIR}" "${TOOL_NAME}"
sudo tar -xzf "${DOWNLOAD_PATH}" -C "${INSTALL_DIR}" "${TOOL_NAME}"
echo "${INSTALL_DIR}" >> "${GITHUB_PATH}"
echo "Installation complete!"
Expand Down

0 comments on commit 4493661

Please sign in to comment.