Votre Nom 2 years ago
parent
commit
15c004e6bd
1 changed files with 16 additions and 2 deletions
  1. 16 2
      build_cube.sh

+ 16 - 2
build_cube.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Version=6.4
+Version=6.5
 Cuda=NO
 ZFS=NO
 Drivers=AMD
@@ -12,6 +12,18 @@ if (( $EUID != 0 )); then
 fi
 clear
 
+function ubuntu_version_check {
+if [[ $(lsb_release -rs) == "20.04" ]]
+then
+
+      Ubuntu_version="20"
+
+else
+       echo "Non-compatible version"
+       exit 0
+fi
+}
+
 function kernel_check_ {
 if [ $Driver="AMD" ]
 then
@@ -65,7 +77,8 @@ print_centered "╚██████╗╚██████╔╝████
 print_centered " ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝"
 echo -n "$(tput setaf 7)"
 print_centered "Cube Server installation script v$Version"
-sleep 2
+print_centered "Ubuntu version $(lsb_release -rs)"
+sleep 1
 }
 
 function update_ {
@@ -605,6 +618,7 @@ fi
 }
 
 intro_
+ubuntu_version_check
 kernel_check_
 autoroot_
 nvidia_driver_