[syslinux:master] efi: prevent git command in non-git tree #2
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Mon Jan 5 17:48:21 PST 2015
Commit-ID: 138f262d7f93a0794cb542d54a266ed3a322e50d
Gitweb: http://www.syslinux.org/commit/138f262d7f93a0794cb542d54a266ed3a322e50d
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Tue, 23 Dec 2014 12:07:40 -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 #2
efi/clean-gnu-efi.sh presumes it's in a git repo. Test first.
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
efi/clean-gnu-efi.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/efi/clean-gnu-efi.sh b/efi/clean-gnu-efi.sh
index 84ed17a..58def28 100755
--- a/efi/clean-gnu-efi.sh
+++ b/efi/clean-gnu-efi.sh
@@ -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
More information about the Syslinux-commits
mailing list