Don't display stderr for the testing command in check.sh's runif;
And remove an obsolete comment in check-clippy.sh.
This commit is contained in:
committed by
Dan Gohman
parent
bcc268a3cd
commit
7204026bc8
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Usage: check-clippy.sh [--install]
|
# Usage: check-clippy.sh
|
||||||
|
|
||||||
if cargo install --list | tee /dev/null | grep -q "^clippy v0"; then
|
if cargo install --list | tee /dev/null | grep -q "^clippy v0"; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ topdir=$(dirname "$0")
|
|||||||
cd "$topdir"
|
cd "$topdir"
|
||||||
|
|
||||||
function runif {
|
function runif {
|
||||||
if type "$1" > /dev/null; then
|
if type "$1" > /dev/null 2>&1; then
|
||||||
version=$("$1" --version 2>&1)
|
version=$("$1" --version 2>&1)
|
||||||
echo " === $1: $version ==="
|
echo " === $1: $version ==="
|
||||||
"$@"
|
"$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user