Skip to content

Commit

Permalink
binstall
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 6, 2024
1 parent 1556cf8 commit c017367
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ cargo-install $COMMAND $INSTALL_CMD="" *ARGS="":
#!/usr/bin/env sh
set -eu
if [ ! command -v $COMMAND &> /dev/null ]; then
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
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
echo "$COMMAND could not be found. Installing it with cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
fi
fi

0 comments on commit c017367

Please sign in to comment.