diff --git a/kiss b/kiss index 3bf9eb8..3abe311 100755 --- a/kiss +++ b/kiss @@ -278,10 +278,41 @@ pkg_cache() { [ -f "$2" ] } +source_resolve_vars() { + # Replace all occurances of markers with their respective values + # if found in the source string. + _src_sub() { _src_res=${_src_res%"$1"*}${2}${_src_res##*"$1"}; } + _src_res=$1 + + # Split the version on '.' to obtain MAJOR, MINOR and PATCH. + # Fields beyond this are currently unsupported, the entire + # version string is still available via VERSION. + # + # Intentional, globbing disabled. + # shellcheck disable=2086 + IFS=.+- read -r major minor patch ident <