mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-29 16:10:34 +00:00
17 lines
536 B
Text
17 lines
536 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
if !(command cargo-make >/dev/null 2>&1); then # Check if cargo-make is installed
|
||
|
echo Attempting to run cargo-make as part of the pre-push hook but it\'s not installed.
|
||
|
echo Please install it by running the following command:
|
||
|
echo
|
||
|
echo " cargo install --force cargo-make"
|
||
|
echo
|
||
|
echo If you don\'t want to run cargo-make as part of the pre-push hook, you can run
|
||
|
echo the following command instead of git push:
|
||
|
echo
|
||
|
echo " git push --no-verify"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cargo make ci
|