We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3575f49 + 0f479ab commit 9cda433Copy full SHA for 9cda433
1 file changed
pre_commit_hooks/helpers/locate.sh
@@ -12,14 +12,14 @@ prefixed_local_command="php $local_command"
12
13
if [ -f "$vendor_command" ]; then
14
exec_command=$vendor_command
15
-if [ -f "../$vendor_command" ]; then
16
- exec_command="../"+$vendor_command
+elif [ -f "../$vendor_command" ]; then
+ exec_command="../$vendor_command"
17
elif hash $global_command 2>/dev/null; then
18
exec_command=$global_command
19
elif [ -f "$local_command" ]; then
20
exec_command=$prefixed_local_command
21
elif [ -f "../$local_command" ]; then
22
- exec_command="../"+$prefixed_local_command
+ exec_command="../$prefixed_local_command"
23
else
24
echo -e "${bldred}No valid ${title} found!${txtrst}"
25
echo "Please have one available as one of the following:"
0 commit comments