Skip to content

Commit 50434f1

Browse files
committed
Fixed bug for if var LTS_PKG is empty.
1 parent dc3a3cd commit 50434f1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

system-info

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#### Variables
3434
########################################################################
3535
# Versioning
36-
version="Version: 01.00-12, Script Date: 2022.06.08"
36+
version="Version: 01.00-13, Script Date: 2022.06.11"
3737
#md5_sum=$(md5sum $sname | sed 's/system.*//g' )
3838
arg1=$1
3939
arg2=$2
@@ -806,8 +806,13 @@ function GetOtherDetails()
806806
GetDistUpgradeDate
807807
nl
808808
GetHweRange
809-
GetHweKernels
810-
CheckHwe
809+
if [ ! -z $LTS_PKG ]
810+
then
811+
GetHweKernels
812+
CheckHwe
813+
else
814+
echo -e "System tested is either not Ubuntu or is an Ubuntu EOS release version."
815+
fi
811816
CheckIfCertifiedHardwarePlatform
812817
GetUserInstalled
813818
echo -e "Currently logged in User(s):"

0 commit comments

Comments
 (0)