diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-07-26 18:29:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 18:29:57 +0800 |
commit | 514022bde6c5eca1a0f7659d11ec09d89746050d (patch) | |
tree | e021e0e574caeb55a7aed4545850f715df4360e4 | |
parent | a511f6b51589f2af0a63f23a7a63238c30740ab4 (diff) | |
parent | ff22ec31b68c1d7aa5b3be3ad547865d70854efd (diff) | |
download | dexon-514022bde6c5eca1a0f7659d11ec09d89746050d.tar.gz dexon-514022bde6c5eca1a0f7659d11ec09d89746050d.tar.zst dexon-514022bde6c5eca1a0f7659d11ec09d89746050d.zip |
Merge pull request #17252 from karalabe/travis-debsrc-fix
build: noop clean during travis debsrc assembly step
-rwxr-xr-x | build/clean_go_build_cache.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/clean_go_build_cache.sh b/build/clean_go_build_cache.sh index a55650c8f..1666381d9 100755 --- a/build/clean_go_build_cache.sh +++ b/build/clean_go_build_cache.sh @@ -1,5 +1,12 @@ #!/bin/sh +# Cleaning the Go cache only makes sense if we actually have Go installed... or +# if Go is actually callable. This does not hold true during deb packaging, so +# we need an explicit check to avoid build failures. +if ! command -v go > /dev/null; then + exit +fi + version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" } |