Skip to content

The Free Software Media System - Server Backend & API

Correct dpkg conditional logic

Joshua M. Bonifacec689bf457c5f
diff --git a/build.sh b/build.sh
index b4792a25ed..1db02af983 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