From 4394e7ef874398eeb22922b395c5a0880a28d7bf Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 24 Dec 2016 22:20:51 +0100 Subject: libs: project: Only show file contents if the file exists Signed-off-by: Paul Kocialkowski --- libs/project | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/project b/libs/project index d5d88d5b..00ad76c6 100755 --- 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() { -- cgit v1.2.3-70-g09d2