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 committed Oct 29, 2024
1 parent 0bd349d commit d4c396f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maven-check-versions/maven-check-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if [ "${DEBUG}" = true ]; then
fi

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

if [ "${DEBUG}" = true ]; then
Expand All @@ -57,7 +57,7 @@ else
if [ "${DEBUG}" = true ]; then
\echo 'DEBUG: using docker-provided maven command'
fi
cmd='\mvn'
cmd=$(\which mvn)
fi

if [ -z "${MAVEN_CLI_OPTS+x}" ]; then
Expand Down

0 comments on commit d4c396f

Please sign in to comment.