Skip to content

Commit 9cda433

Browse files
authored
Merge pull request #4 from OrdinoNZ/3-fix-elif-and-+-appending-error
Fix: Fixed elif and appending + error
2 parents 3575f49 + 0f479ab commit 9cda433

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pre_commit_hooks/helpers/locate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ prefixed_local_command="php $local_command"
1212

1313
if [ -f "$vendor_command" ]; then
1414
exec_command=$vendor_command
15-
if [ -f "../$vendor_command" ]; then
16-
exec_command="../"+$vendor_command
15+
elif [ -f "../$vendor_command" ]; then
16+
exec_command="../$vendor_command"
1717
elif hash $global_command 2>/dev/null; then
1818
exec_command=$global_command
1919
elif [ -f "$local_command" ]; then
2020
exec_command=$prefixed_local_command
2121
elif [ -f "../$local_command" ]; then
22-
exec_command="../"+$prefixed_local_command
22+
exec_command="../$prefixed_local_command"
2323
else
2424
echo -e "${bldred}No valid ${title} found!${txtrst}"
2525
echo "Please have one available as one of the following:"

0 commit comments

Comments
 (0)