diff --git a/scripts/build-deb.sh b/scripts/build-deb.sh index c12ce77..3954527 100755 --- a/scripts/build-deb.sh +++ b/scripts/build-deb.sh @@ -2,7 +2,8 @@ version=$(git describe --tags) vers_nov=${version#*v} -splitted=(${vers_nov//./ }) + +readarray -d "." -t splitted < <(printf "%s" "$vers_nov") vers_majmin="${splitted[0]}"."${splitted[1]}" vers_minor="${splitted[2]}"