aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-24 21:00:26 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:45 +0000
commit05d5710577786516c8f29735246edeafc86c85fe (patch)
tree1d491b585b0a55146efd3358d0cc68a1a14f7754
parentdc7ea866a3881102fcd6c767537974a98fc83f67 (diff)
downloadlibrebootfr-05d5710577786516c8f29735246edeafc86c85fe.tar.gz
librebootfr-05d5710577786516c8f29735246edeafc86c85fe.zip
libs: git: Check that blobs path is a valid file
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-xlibs/git2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/git b/libs/git
index 1b451724..e64173d9 100755
--- a/libs/git
+++ b/libs/git
@@ -301,7 +301,7 @@ git_project_prepare_blobs() {
local blobs_path=$( project_blobs_path "$project" "$@" )
local blob
- if [ -z "$blobs_path" ]
+ if ! [ -f "$blobs_path" ]
then
return
fi