Skip to content

Commit

Permalink
Update maven-check-versions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus authored Oct 29, 2024
1 parent d494236 commit bd7efdf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions maven-check-versions/maven-check-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ if [ "${DEBUG}" = true ]; then
if [ -n "${MVNW_VERBOSE+x}" ]; then
export MVNW_VERBOSE=true
fi
fi

# Support working_directory input if used as GitHub action
if [ -n "${ENV_WORKING_DIRECTORY+x}" ]; then
if [ "${DEBUG}" = true ]; then
\echo "DEBUG: changing working directory to: ${ENV_WORKING_DIRECTORY}"
fi
cd "${ENV_WORKING_DIRECTORY}"
fi

if [ "${DEBUG}" = true ]; then
\echo "DEBUG: current working directory = $(pwd)"
\echo 'DEBUG:'
# shellcheck disable=SC2012
Expand Down

0 comments on commit bd7efdf

Please sign in to comment.