Skip to content

Commit

Permalink
Improve justfile install, lock bump (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Feb 6, 2024
1 parent c30fc20 commit 3f48f89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 3f48f89

Please sign in to comment.