diff --git a/check_eol-versiondetect/autodetect-os b/check_eol-versiondetect/autodetect-os
index 36978fc2cd9e666ac1384e943d01f13e0ab285e2..d01b0a4bf2534c894423ae410f16e8c05d8af919 100755
--- a/check_eol-versiondetect/autodetect-os
+++ b/check_eol-versiondetect/autodetect-os
@@ -12,7 +12,7 @@
 myKey=`ph.getOS`
 myVersion=`ph.getOSMajor`
 
-case "$mykey" in
+case "$myKey" in
     centos)
         # detect centos stream
         grep -i stream /etc/centos-release >/dev/null 2>&1 && myVersion="${myVersion}-stream"