Skip to content

Commit

Permalink
set -x for windows commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke committed Dec 19, 2024
1 parent 41b805e commit d696971
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/env-loader/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ runs:
# Install the tool
maybe_sudo() {
set -x
# Run as root via sudo if possible. This cannot be handled via an alias
# because Bash on Windows seems to silently discard `alias sudo=""`.
if command -v sudo > /dev/null; then
sudo "$@"
else
"$@"
fi
set +x
}
echo "Installing to ${INSTALL_DIR}..."
Expand Down

0 comments on commit d696971

Please sign in to comment.