mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 07:36:38 +00:00
fix git.sh
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
e5666ad7d4
commit
a33f79c5dd
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ cp -r manifests/workspace/* "$GIT"
|
||||||
)
|
)
|
||||||
COMMIT_HASH="$(cd "$GIT" && git rev-parse HEAD)"
|
COMMIT_HASH="$(cd "$GIT" && git rev-parse HEAD)"
|
||||||
|
|
||||||
source="(git+file://$(cygpath -m "$GIT")#$COMMIT_HASH)"
|
if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]; then
|
||||||
|
source="(git+file:///$(cygpath -m "$GIT")#$COMMIT_HASH)"
|
||||||
|
else
|
||||||
|
source="(git+file://$GIT#$COMMIT_HASH)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install cargo-binstall using `--git`
|
# Install cargo-binstall using `--git`
|
||||||
"./$1" binstall --force --git "file://$GIT" --no-confirm cargo-binstall
|
"./$1" binstall --force --git "file://$GIT" --no-confirm cargo-binstall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue