Skip to content

Commit

Permalink
git-extra: fix quoting in post-install script
Browse files Browse the repository at this point in the history
This slipped by, somehow, even during the manual test of 257a670
(git-extra: really only add the aarch64 repository for git-sdk-arm64,
2023-02-11)...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 26, 2023
1 parent dc2bf20 commit 5b4d8ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git-extra/git-extra.install
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion git-extra/git-extra.install.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b4d8ff

Please sign in to comment.