Skip to content

Commit

Permalink
Correct dpkg conditional logic
Browse files Browse the repository at this point in the history
Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
  • Loading branch information
joshuaboniface and JustAMan authored Apr 26, 2020
1 parent 4d949cb commit c689bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c689bf4

Please sign in to comment.