Skip to content

Commit

Permalink
fix justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 6, 2024
1 parent 570d30b commit 5b67da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ bless *ARGS: (cargo-install "insta" "cargo-insta")
cargo-install $COMMAND $INSTALL_CMD="" *ARGS="":
#!/usr/bin/env sh
set -eu
if ! command -v $COMMAND &> /dev/null; then
if ! command -v cargo-binstall &> /dev/null; then
if ! command -v $COMMAND > /dev/null; then
if ! command -v cargo-binstall > /dev/null; then
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
else
Expand Down

0 comments on commit 5b67da5

Please sign in to comment.