mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-10 05:30:34 +00:00
Fix sha1 on premake linux
This commit is contained in:
parent
1b8d03f3aa
commit
8659b9d77c
2 changed files with 3 additions and 5 deletions
6
printHash.sh
Normal file → Executable file
6
printHash.sh
Normal file → Executable file
|
@ -1,12 +1,10 @@
|
|||
#!/usr/bin/bash
|
||||
#!/bin/bash
|
||||
|
||||
> $1
|
||||
|
||||
echo -n "#define GIT_SHA1 \"" > $1
|
||||
|
||||
git --version 2>&1 >/dev/null
|
||||
GIT_IS_AVAILABLE=$?
|
||||
if [ $GIT_IS_AVAILABLE -ne 0 ]; then
|
||||
if (command -v "git" >/dev/null) then
|
||||
git rev-parse --short HEAD | tr -d '\n' >> $1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue