Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aglipanci committed Dec 21, 2022
1 parent 18945b8 commit 9258dcb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,29 @@ else
pint_install_command="${pint_install_command/:PINT_VERSION/}"
fi

command_string=("pint")
pint_command=("pint")

if [[ "${INPUT_TESTMODE}" ]]; then
command_string+=" --test"
pint_command+=" --test"
fi

if [[ "${INPUT_VERBOSEMODE}" ]]; then
command_string+=" -v"
pint_command+=" -v"
fi

if [[ "${INPUT_CONFIGPATH}" ]]; then
command_string+=" --config ${INPUT_CONFIGPATH}"
pint_command+=" --config ${INPUT_CONFIGPATH}"
fi

if [[ "${INPUT_PRESET}" ]]; then
command_string+=" --preset ${INPUT_PRESET}"
pint_command+=" --preset ${INPUT_PRESET}"
fi

echo "Running Command: " "${pint_install_command[@]}"

${pint_install_command[@]}
PATH="/tmp/vendor/bin:${PATH}"

echo "Running Command: " "${command_string[@]}"
echo "Running Command: " "${pint_command[@]}"

${command_string[@]}
${pint_command[@]}

0 comments on commit 9258dcb

Please sign in to comment.