Commit 713cf222 authored by tuncer's avatar tuncer
Browse files

bootstrap.sh: SC2069

The order of the 2>&1 and the redirect matters. The 2>&1 has to be last.
parent a17cd30f
......@@ -60,7 +60,7 @@ DEFAULT_PREFIX="${HOME}/.cabal"
# Check for a C compiler, using user-set $CC, if any, first.
for c in $CC gcc clang cc icc; do
$c --version 2>&1 >/dev/null && CC=$c &&
$c --version 1>/dev/null 2>&1 && CC=$c &&
echo "Using $c for C compiler. If this is not what you want, set CC." >&2 &&
break
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment