Explorar el Código

corrected distroid

Daniel Gibbs hace 7 años
padre
commit
05b5705c3f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lgsm/functions/info_distro.sh

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -56,7 +56,7 @@ do
 		elif [ -z "${distroversion}" ];then
 			distroversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos|fedora" | cut -d"-" -f3)
 		elif [ -z "${distroid}" ];then
-			distroid="$(wk '{print $1;}' /etc/redhat-release)"
+			distroid="$(awk '{print $1}' /etc/redhat-release)"
 		fi
 	fi
 done