abuild: export $git to fix fatal: not a git repository

We re-spawn abuild and need to pass $git
This commit is contained in:
Natanael Copa 2022-06-15 14:24:42 +02:00
parent 63467b1ef3
commit 1a4e76dd74
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ program_version=@VERSION@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
abuild_path=$(readlink -f $0)
git=$(command -v git) || git=true
: ${git:=$(command -v git || echo true)}
export git
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2