libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 83fa8757681976e8238fcae848864c4cfab738aa
parent 41e9655b04cae6c6b05ad435df29e42653381cfc
Author: Leah Rowe <info@minifree.org>
Date:   Tue, 30 May 2017 04:36:00 +0000

Merge branch 'build-system-merge' of kragle/libreboot into master

Diffstat:
libs/project | 9+++------
libs/tool | 9+++------
2 files changed, 6 insertions(+), 12 deletions(-)

diff --git 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() { diff --git 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() {