aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-04-25 22:12:19 -0400
committerGitHub <noreply@github.com>2020-04-25 22:12:19 -0400
commitc689bf457c5f07774f74d2cdecabc1567ac16e77 (patch)
treebe5f8dd398064b3deaffc137935cbf6b036dc8ab /build.sh
parent4d949cb38b531455bc42551a7c095a0c2a00170e (diff)
Correct dpkg conditional logic
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b4792a25e..1db02af98 100755
--- a/build.sh
+++ b/build.sh
@@ -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