do not use pipefail bashism
This commit is contained in:
parent
7aa146ad90
commit
6adc3b6ea6
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -o pipefail
|
||||
|
||||
CC=$1
|
||||
|
||||
|
@ -9,12 +8,12 @@ build_compiler="unknown"
|
|||
build_target="unknown"
|
||||
|
||||
# git is broken on WSL so we need to strip extra newlines
|
||||
if out=$(git rev-list --count HEAD | tr -d '\n'); then
|
||||
build_number=$out
|
||||
if out=$(git rev-list --count HEAD); then
|
||||
build_number=$(printf '%s' "$out" | tr -d '\n')
|
||||
fi
|
||||
|
||||
if out=$(git rev-parse --short HEAD | tr -d '\n'); then
|
||||
build_commit=$out
|
||||
if out=$(git rev-parse --short HEAD); then
|
||||
build_commit=$(printf '%s' "$out" | tr -d '\n')
|
||||
fi
|
||||
|
||||
if out=$($CC --version | head -1); then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue