diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-04-25 22:12:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 22:12:19 -0400 |
| commit | c689bf457c5f07774f74d2cdecabc1567ac16e77 (patch) | |
| tree | be5f8dd398064b3deaffc137935cbf6b036dc8ab | |
| parent | 4d949cb38b531455bc42551a7c095a0c2a00170e (diff) | |
Correct dpkg conditional logic
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
| -rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ list_platforms() { } do_build_native() { - if [[ -f $( which dpkg ) && $( dpkg --print-architecture | head -1 ) != "${PLATFORM##*.}" ]]; then + if [[ ! -f $( which dpkg ) || $( dpkg --print-architecture | head -1 ) != "${PLATFORM##*.}" ]]; then echo "Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building." exit 1 fi |
