Skip to content

Commit

Permalink
chore: fix git test
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 17, 2023
1 parent abb7209 commit 7358162
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions fixtures/git/_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@

set -e


mkdir -p .bin
if $(uname -a | grep -q Darwin); then
curl -L https://github.com/mergestat/mergestat-lite/releases/download/v0.6.1/mergestat-macos-amd64.tar.gz -o mergestat.tar.gz
tar xf mergestat.tar.gz
mergestat --help
tar xf mergestat.tar.gz -C .bin

else
curl -L https://github.com/mergestat/mergestat-lite/releases/download/v0.6.1/mergestat-linux-amd64.tar.gz -o mergestat.tar.gz
tar xf mergestat.tar.gz
tar xf mergestat.tar.gz-C .bin
fi

#verification
which askgit
if ! ./mergestat --help > /dev/null; then
if ! .bin/mergestat --help > /dev/null; then
printf "`askgit --help` failed. Check the binary?"
exit 1;
fi
Expand Down

0 comments on commit 7358162

Please sign in to comment.