From bedd2114929d41ad683c909934cdbf2779c733ab Mon Sep 17 00:00:00 2001 From: mar Date: Wed, 3 May 2023 08:25:50 +0200 Subject: [PATCH] changed: more robust splitting mechanism for the arch array in the deb generation file. --- scripts/build-deb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]}"