diff --git a/hooks/pre-push.sh b/hooks/pre-push.sh index a8263d7..8ae487a 100755 --- a/hooks/pre-push.sh +++ b/hooks/pre-push.sh @@ -1,16 +1,14 @@ #!/bin/bash set -eu -if ! cargo clippy --all-targets -- -D warnings -then - echo "There are some clippy issues." - exit 1 +if ! cargo clippy --all-targets -- -D warnings; then + echo "There are some clippy issues." + exit 1 fi -if ! cargo test -then - echo "There are some test issues." - exit 1 +if ! cargo nextest run; then + echo "There are some test issues." + exit 1 fi exit 0