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/project | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libs/project') diff --git a/libs/project b/libs/project index 00ad76c6..eb376ae0 100755 --- a/libs/project +++ b/libs/project @@ -46,16 +46,13 @@ project_helper_include() { } project_check() { - local project=$1 + local project="${1##*/}" - local project_path=$( project_path "$project" ) + local project_path="$(project_path "${project}")" - if ! [ -f "$project_path/$project" ] - then + if ! [[ -f "${project_path}/${project}" ]]; then return 1 fi - - return 0 } project_function_check() { -- cgit v1.2.3-70-g09d2