Skip to content

Commit

Permalink
efi: prevent git command in non-git tree
Browse files Browse the repository at this point in the history
efi/build-gnu-efi.sh presumes it's in a git repo.  Test first.

Signed-off-by: Gene Cumm <[email protected]>
  • Loading branch information
ErwanAliasr1 authored and geneC committed Jan 6, 2015
1 parent 6b45747 commit 0f8cbe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion efi/build-gnu-efi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ fi

(
cd ../..
git submodule update --init
if [ -d .git ]; then
git submodule update --init
fi
)

mkdir -p "$objdir/gnu-efi"
Expand Down

0 comments on commit 0f8cbe0

Please sign in to comment.