Selaa lähdekoodia

corrected distroid

Daniel Gibbs 7 vuotta sitten
vanhempi
commit
05b5705c3f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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