libreboot

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

commit 4394e7ef874398eeb22922b395c5a0880a28d7bf
parent 5350a0ded28d3f8345f47d896bc88c8906e56f90
Author: Paul Kocialkowski <contact@paulk.fr>
Date:   Sat, 24 Dec 2016 22:20:51 +0100

libs: project: Only show file contents if the file exists

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Diffstat:
libs/project | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libs/project b/libs/project @@ -1435,7 +1435,10 @@ project_file_test() { project_file_contents() { local file_path=$( project_file_path "$@" ) - cat "$file_path" + if [ -f "$file_path" ] + then + cat "$file_path" + fi } project_file_contents_herit() {