Correct dpkg conditional logic

Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
This commit is contained in:
Joshua M. Boniface 2020-04-25 22:12:19 -04:00 committed by GitHub
parent 4d949cb38b
commit c689bf457c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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