We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b329e commit f8d8a4fCopy full SHA for f8d8a4f
entrypoint.sh
@@ -1,6 +1,15 @@
1
#!/bin/bash
2
set -e
3
4
+pint_install_command=("composer global require laravel/pint:PINT_VERSION --no-progress --dev")
5
+
6
+if [[ "${INPUT_PINT_VERSION}" ]]
7
+then
8
+ pint_install_command="${pint_install_command/PINT_VERSION/${INPUT_PINT_VERSION}}"
9
+else
10
+ pint_install_command="${pint_install_command/:PINT_VERSION/}"
11
+fi
12
13
command_string=("pint")
14
15
if [[ "${INPUT_TESTMODE}" ]]; then
@@ -19,7 +28,7 @@ if [[ "${INPUT_PRESET}" ]]; then
19
28
command_string+=" --preset ${INPUT_PRESET}"
20
29
fi
21
30
22
-composer global require laravel/pint --no-progress --dev
31
+${pint_install_command[@]}
23
32
PATH="/tmp/vendor/bin:${PATH}"
24
33
25
34
echo "Running Command: " "${command_string[@]}"
0 commit comments