aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2014-12-23 12:04:46 -0500
committerGene Cumm <gene.cumm@gmail.com>2015-01-05 20:43:13 -0500
commit0f8cbe0409b88f62f08530c5ad3d91d240a96637 (patch)
tree6564d09be07f381796189f7af889dfde0c753c56
parent6b45747ba5a1d8051d1e6962f0666835c5992128 (diff)
downloadsyslinux-0f8cbe0409b88f62f08530c5ad3d91d240a96637.tar.gz
syslinux-0f8cbe0409b88f62f08530c5ad3d91d240a96637.tar.xz
syslinux-0f8cbe0409b88f62f08530c5ad3d91d240a96637.zip
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@gmail.com>
-rwxr-xr-xefi/build-gnu-efi.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/efi/build-gnu-efi.sh b/efi/build-gnu-efi.sh
index c87e67c2..e72d8720 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"