ref: f2a12c0104325ec01ac718e9738a844ec3ad18fb
parent: 4d0a782dc4835b948759b0f1e41a1badf9e2c0ac
author: cancel <cancel@cancel.fm>
date: Thu Nov 29 13:27:20 EST 2018
Fix up pipefail condition
--- a/tool
+++ b/tool
@@ -87,8 +87,7 @@
cc_id=
compiler_vers=
if compiler_vers_string=$("$compiler_exe" --version 2> /dev/null); then
- clang_vers_string=$(echo "$compiler_vers_string" | grep clang | head -n1)
- if ! [[ -z $clang_vers_string ]]; then
+ if clang_vers_string=$(echo "$compiler_vers_string" | grep clang | head -n1) && ! [[ -z $clang_vers_string ]]; then
cc_id=clang
# clang -dumpversion always pretends to be gcc 4.2.1
# shellcheck disable=SC2001