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:
Benjamin Bouvier
2018-07-10 17:06:03 +02:00
committed by Dan Gohman
parent bcc268a3cd
commit 7204026bc8
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 ==="
"$@" "$@"