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
|
#!/bin/sh
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
CC=$1
|
CC=$1
|
||||||
|
|
||||||
|
@ -9,12 +8,12 @@ build_compiler="unknown"
|
||||||
build_target="unknown"
|
build_target="unknown"
|
||||||
|
|
||||||
# git is broken on WSL so we need to strip extra newlines
|
# git is broken on WSL so we need to strip extra newlines
|
||||||
if out=$(git rev-list --count HEAD | tr -d '\n'); then
|
if out=$(git rev-list --count HEAD); then
|
||||||
build_number=$out
|
build_number=$(printf '%s' "$out" | tr -d '\n')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if out=$(git rev-parse --short HEAD | tr -d '\n'); then
|
if out=$(git rev-parse --short HEAD); then
|
||||||
build_commit=$out
|
build_commit=$(printf '%s' "$out" | tr -d '\n')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if out=$($CC --version | head -1); then
|
if out=$($CC --version | head -1); then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue