diff --git a/Scripts/Functions/cli_getPathComponent.sh b/Scripts/Functions/cli_getPathComponent.sh index e071cc3..e4db473 100755 --- a/Scripts/Functions/cli_getPathComponent.sh +++ b/Scripts/Functions/cli_getPathComponent.sh @@ -39,7 +39,7 @@ function cli_getPathComponent { local ARGUMENTS='' # Define release pattern. - local RELEASE="(([[:digit:]]+)(\.([[:digit:]]+)){,1})" + local RELEASE="(([[:digit:]]+)(\.([[:digit:]]+)){0,1})" # Define architecture pattern. Make it match the architectures the # CentOS distribution is able to be installed on.