aboutsummaryrefslogtreecommitdiff
path: root/libs/project
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-24 22:20:51 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:46 +0000
commit4394e7ef874398eeb22922b395c5a0880a28d7bf (patch)
treee36feceea26a2235eb12058ac012c16a1876b74a /libs/project
parent5350a0ded28d3f8345f47d896bc88c8906e56f90 (diff)
downloadlibrebootfr-4394e7ef874398eeb22922b395c5a0880a28d7bf.tar.gz
librebootfr-4394e7ef874398eeb22922b395c5a0880a28d7bf.zip
libs: project: Only show file contents if the file exists
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'libs/project')
-rwxr-xr-xlibs/project5
1 files changed, 4 insertions, 1 deletions
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() {