xbps-src: use $XBPS_GIT_CMD for git

This commit is contained in:
Đoàn Trần Công Danh 2020-04-22 20:59:26 +07:00 committed by Danh Doan
parent f1773b7792
commit 20f9bedefb
3 changed files with 14 additions and 21 deletions

View file

@ -508,14 +508,13 @@ fi
# Try using chroot-git then git from the host system
if command -v chroot-git &>/dev/null; then
XBPS_GIT_CMD=$(command -v chroot-git)
export XBPS_GIT_CMD=$(command -v chroot-git)
elif command -v git &>/dev/null; then
XBPS_GIT_CMD=$(command -v git)
export XBPS_GIT_CMD=$(command -v git)
else
echo "neither chroot-git or git are available in your system!" 1>&2
exit 1
fi
readonly XBPS_GIT_CMD
if [ -n "$XBPS_HOSTDIR" ]; then
export XBPS_REPOSITORY=$XBPS_HOSTDIR/binpkgs