Merge pull request #1704 from orien3243/patch-1

Update Checkgit.sh
This commit is contained in:
Hylke Bons 2016-07-11 21:08:11 +01:00 committed by GitHub
commit 3c62268861

View file

@ -20,9 +20,17 @@ set -e
if [ ! -f ${projectFolder}/git-${gitVersion}.tar.gz ]
then
curl -s https://codeload.github.com/git/git/zip/v${gitVersion} > git.zip
unzip -q git.zip
list_hash=$(sed -n -e "/git-${gitVersion}.tar.gz/p" sha256sums.asc | cut -c 1-64)
file_hash=$(shasum -a 256 git.tar.gz | cut -c 1-64)
curl -s https://www.kernel.org/pub/software/scm/git/git-${gitVersion}.tar.gz > git.tar.gz
test -e git.tar.gz || {echo "Failed to download git"; exit 1}
test "$file_hash" = "$list_hash" || {echo "SHA256 Mistmatch" ;exit 1}
tar xf git.tar.gz
cd git-${gitVersion}
make configure
@ -33,5 +41,5 @@ then
tar cfz git-${gitVersion}.tar.gz git
rm -rf git
rm -rf git-${gitVersion}
rm git.zip
rm git.tar.gz
fi