aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2018-10-09 16:39:49 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2018-10-09 16:39:49 -0400
commit72d712adf0643a4b714116ebd648cdbb6d64c502 (patch)
treed984945db319c65d208c23bff72b6826f4e1dcb4 /libs
parentb7e46d8a053f7b3ba4c4d51c65ba735e67a50674 (diff)
downloadlibrebootfr-72d712adf0643a4b714116ebd648cdbb6d64c502.tar.gz
librebootfr-72d712adf0643a4b714116ebd648cdbb6d64c502.zip
Modify project_file_path() to return first matching path
project_file_path() now returns the first matching path rather than the last. This is necessary to allow splitting up configuration files for projects into "base" and "overriding" configs.
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/project2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/project b/libs/project
index e5162fb5..99d29927 100755
--- a/libs/project
+++ b/libs/project
@@ -1387,6 +1387,8 @@ project_file_path() {
fi
file_path="$path/$file"
+
+ break
done
if [[ -z "$file_path" ]]