diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-12-24 22:20:51 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-01-15 14:24:46 +0000 |
commit | 4394e7ef874398eeb22922b395c5a0880a28d7bf (patch) | |
tree | e36feceea26a2235eb12058ac012c16a1876b74a /libs/project | |
parent | 5350a0ded28d3f8345f47d896bc88c8906e56f90 (diff) | |
download | librebootfr-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-x | libs/project | 5 |
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() { |