From 10aa44585ed4dd1495f47229daa2db4831694c9c Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Sat, 27 May 2017 23:35:53 -0400 Subject: Fixed project_check() and tool_check(). --- libs/tool | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libs/tool') diff --git a/libs/tool b/libs/tool index 6bf57be1..3a9c4a1b 100755 --- a/libs/tool +++ b/libs/tool @@ -44,16 +44,13 @@ tool_helper_include() { } tool_check() { - local tool=$1 + local tool="${1##*/}" - local tool_path=$( tool_path "$tool" ) + local tool_path="$(tool_path "${tool}")" - if ! [ -f "$tool_path/$tool" ] - then + if ! [[ -f "${tool_path}/${tool}" ]]; then return 1 fi - - return 0 } tool_function_check() { -- cgit v1.2.3-70-g09d2