diff --git a/git-extra/git-extra.install b/git-extra/git-extra.install index ffb4c7ee19..be41055a68 100644 --- a/git-extra/git-extra.install +++ b/git-extra/git-extra.install @@ -120,7 +120,7 @@ GITATTRIBUTES grep -q "$otherpacman" etc/pacman.conf || sed -i -e '/^\[mingw32\]/i['$otherpacman']\nServer = https://wingit.blob.core.windows.net/'$otherarch'\n' etc/pacman.conf - test -z "$(find /clangarm64 -type f -print -quit) || # if /clangarm64 exists and contains at least one file + test -z "$(find /clangarm64 -type f -print -quit)" || # if /clangarm64 exists and contains at least one file grep -q "git-for-windows-aarch64" etc/pacman.conf || # then add Git for Windows' aarch64 repository (unless it's already added) sed -i -e '/^\[clangarm64]/i[git-for-windows-aarch64]\nServer = https://wingit.blob.core.windows.net/aarch64\n' etc/pacman.conf diff --git a/git-extra/git-extra.install.in b/git-extra/git-extra.install.in index 0dc36d0e61..8019a320a7 100644 --- a/git-extra/git-extra.install.in +++ b/git-extra/git-extra.install.in @@ -86,7 +86,7 @@ GITATTRIBUTES grep -q "$otherpacman" etc/pacman.conf || sed -i -e '/^\[mingw32\]/i['$otherpacman']\nServer = https://wingit.blob.core.windows.net/'$otherarch'\n' etc/pacman.conf - test -z "$(find /clangarm64 -type f -print -quit) || # if /clangarm64 exists and contains at least one file + test -z "$(find /clangarm64 -type f -print -quit)" || # if /clangarm64 exists and contains at least one file grep -q "git-for-windows-aarch64" etc/pacman.conf || # then add Git for Windows' aarch64 repository (unless it's already added) sed -i -e '/^\[clangarm64]/i[git-for-windows-aarch64]\nServer = https://wingit.blob.core.windows.net/aarch64\n' etc/pacman.conf