[syslinux:master] efi: prevent git command in non-git tree

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Mon Jan 5 17:48:20 PST 2015


Commit-ID:  0f8cbe0409b88f62f08530c5ad3d91d240a96637
Gitweb:     http://www.syslinux.org/commit/0f8cbe0409b88f62f08530c5ad3d91d240a96637
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Tue, 23 Dec 2014 12:04:46 -0500
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Mon, 5 Jan 2015 20:43:13 -0500

efi: prevent git command in non-git tree

efi/build-gnu-efi.sh presumes it's in a git repo.  Test first.

Signed-off-by: Gene Cumm <gene.cumm at gmail.com>

---
 efi/build-gnu-efi.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/efi/build-gnu-efi.sh b/efi/build-gnu-efi.sh
index c87e67c..e72d872 100755
--- a/efi/build-gnu-efi.sh
+++ b/efi/build-gnu-efi.sh
@@ -29,7 +29,9 @@ fi
 
 (
 	cd ../..
-	git submodule update --init
+	if [ -d .git ]; then
+	    git submodule update --init
+	fi
 )
 
 mkdir -p "$objdir/gnu-efi"


More information about the Syslinux-commits mailing list