Fix git_check function repo variable

This commit is contained in:
Jordan Carlin 2024-07-20 00:24:26 -07:00
parent 0f695bac45
commit 302c23dc42

View File

@ -68,7 +68,7 @@ git_check() {
local url=$2 local url=$2
local check=$3 local check=$3
local branch="${4:-master}" local branch="${4:-master}"
if [[ ((! -e $repo) && ($(git clone "$url") || true)) || ($(cd "$repo"; git fetch; git rev-parse HEAD) != $(cd repo; git rev-parse origin/"$branch")) || (! -e $check) ]]; then if [[ ((! -e $repo) && ($(git clone "$url") || true)) || ($(cd "$repo"; git fetch; git rev-parse HEAD) != $(cd $repo; git rev-parse origin/"$branch")) || (! -e $check) ]]; then
return 0 return 0
else else
return 1 return 1