make, scripts: Fix CentOS 7 build

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-10-13 10:46:02 +00:00
commit 20f675c280
5 changed files with 38 additions and 7 deletions

View file

@ -45,6 +45,15 @@ config()
run_git()
{
marker git "$@"
# sadly, CentOS 7 has git 1.8.3.1, which doesn't support -C
if [ "$1" = -C ]; then
(
cd $2
shift 2
git "$@"
)
return $?
fi
git "$@"
}