Skip to content

Commit e56dd62

Browse files
committed
style updates
1 parent c509bff commit e56dd62

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ else
1313
pint_install_command="${pint_install_command/:PINT_VERSION/}"
1414
fi
1515

16-
echo "Running Command: " "${pint_install_command[@]}"
16+
echo "Running Command: ${pint_install_command[@]}"
1717
${pint_install_command[@]}
1818
PATH="/tmp/vendor/bin:${PATH}"
1919

20-
# Get version after installation
2120
pint_version=$(pint --version | grep -oE '[0-9]+\.[0-9]+(\.[0-9]+)?' | head -1)
2221
version_check=$(printf '%s\n1.23' "$pint_version" | sort -V | head -1)
2322

24-
# Build command with consistent array syntax
2523
pint_command=("pint")
2624
if [[ "${INPUT_TESTMODE}" == true ]]; then
2725
pint_command+=(" --test")
@@ -32,11 +30,11 @@ if [[ "${INPUT_VERBOSEMODE}" == true ]]; then
3230
fi
3331

3432
if [[ "${INPUT_CONFIGPATH}" ]]; then
35-
pint_command+=(" --config" "${INPUT_CONFIGPATH}")
33+
pint_command+=(" --config ${INPUT_CONFIGPATH}")
3634
fi
3735

3836
if [[ "${INPUT_PRESET}" ]]; then
39-
pint_command+=(" --preset" "${INPUT_PRESET}")
37+
pint_command+=(" --preset ${INPUT_PRESET}")
4038
fi
4139

4240
if [[ "${INPUT_ONLYDIFF}" ]]; then
@@ -56,6 +54,6 @@ if [[ "${INPUT_PARALLEL}" == true ]]; then
5654
fi
5755
fi
5856

59-
echo "Running Command: " "${pint_command[@]}"
57+
echo "Running Command: ${pint_command[@]}"
6058

6159
"${pint_command[@]}"

0 commit comments

Comments
 (0)