소스 검색

Correct dpkg conditional logic

Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
Joshua M. Boniface 5 년 전
부모
커밋
c689bf457c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      build.sh

+ 1 - 1
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