Skip to content

Commit

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

Signed-off-by: Gene Cumm <[email protected]>
  • Loading branch information
geneC committed Jan 6, 2015
1 parent 0f8cbe0 commit 138f262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion efi/clean-gnu-efi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ objdir=$(readlink -f "$2")

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

if [ -d "$objdir/gnu-efi" ];then
Expand Down

0 comments on commit 138f262

Please sign in to comment.