aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/functions.sh')
-rw-r--r--sh/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index cfd8b005..9b0da2d0 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -108,7 +108,7 @@ KV_to_int() {
local KV_MAJOR=${x%%.*}
x=${x#*.}
local KV_MINOR=${x%%.*}
- x=${1#*.*.}
+ x=${x#*.}
local KV_MICRO=${x%%.*}
local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))