Jelajahi Sumber

check if xz is installed on the host

Waldemar Brodkorb 2 bulan lalu
induk
melakukan
8b0fa7b1b8
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  1. 9 0
      scripts/prereq.sh

+ 9 - 0
scripts/prereq.sh

@@ -304,6 +304,15 @@ if ! which git >/dev/null 2>&1; then
 fi
 printf "found\n"
 
+printf " --->  checking if xz is installed.. "
+if ! which xz >/dev/null 2>&1; then
+  echo You must install xz to continue.
+  echo
+  out=1
+  printf "not found\n"
+fi
+printf "found\n"
+
 printf " --->  checking if ncurses is installed.. "
 check_lxdialog=${topdir}/adk/config/lxdialog/check-lxdialog.sh
 CURSES_CFLAGS=$(/bin/sh ${check_lxdialog} -ccflags | tr '\n' ' ')