Explorar o código

mkrootfs: die if $QEMU_BIN is not in PATH.

Juan RP %!s(int64=10) %!d(string=hai) anos
pai
achega
c332eae781
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      mkrootfs.sh.in

+ 3 - 0
mkrootfs.sh.in

@@ -155,6 +155,9 @@ for f in chroot tar xbps-install xbps-reconfigure xbps-query; do
         die "$f binary is missing in your system, exiting."
     fi
 done
+if ! $QEMU_BIN -version >/dev/null 2>&1; then
+    die "$QEMU_BIN binary is missing in your system, exiting."
+fi
 if type pixz >/dev/null 2>&1; then
     XZ=pixz
 else