Commit 561d91f9744cf7f2ecf07e230b865ba67e5b234f

Authored by Sergio Oliveira
1 parent ba34d501

Using awk to calculate release number

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
ci/build_rpm.sh
... ... @@ -36,7 +36,8 @@ latest_version=`grep -i version /tmp/colab-latest-info | awk '{ print $3 }'`
36 36 latest_release=`grep -i release /tmp/colab-latest-info | awk '{ print $3 }'`
37 37  
38 38 if [ "$version" == "$latest_version" ]; then
39   - release=$((latest_release + 1))
  39 + # Using awk because it can deal with floating points
  40 + release=`echo $latest_release | awk '{ $1++; print $1 }'`
40 41 else
41 42 release=1
42 43 fi
... ...