Skip to content

Commit

Permalink
yet more linter cheer
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 24, 2024
1 parent 6f48046 commit 66ad0e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
if: ${{ env.isrrelease == 0 && env.ismaster == 0 }}
run: |
numver=$(echo "$currrelease" | sed -E 's/v([^-]*)/\1/')
numverparts=($(echo "$numver" | tr "." "\n"))
numverparts=('$(echo "$numver" | tr "." "\n")')
len=${#numverparts[@]}
if [ $len -gt 2 ]; then
if [ "$len" -gt "2" ]; then
numver=${numverparts[0]}.${numverparts[1]}.$(( numverparts[2] + 1))
elif [ $len -eq 2 ]; then
elif [ "$len" -eq "2" ]; then
numver=${numverparts[0]}.${numverparts[1]}.1
else
numver=${numverparts[0]}.0.1
Expand Down

0 comments on commit 66ad0e4

Please sign in to comment.