aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-05-30 04:36:00 +0000
committerGogs <gogitservice@gmail.com>2017-05-30 04:36:00 +0000
commit83fa8757681976e8238fcae848864c4cfab738aa (patch)
tree70a67814e3f02e2d905812c89d9ab3f78cc9a1dc /libs/project
parent41e9655b04cae6c6b05ad435df29e42653381cfc (diff)
parent10aa44585ed4dd1495f47229daa2db4831694c9c (diff)
downloadlibrebootfr-83fa8757681976e8238fcae848864c4cfab738aa.tar.gz
librebootfr-83fa8757681976e8238fcae848864c4cfab738aa.zip
Merge branch 'build-system-merge' of kragle/libreboot into master
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project9
1 files changed, 3 insertions, 6 deletions
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() {