Skip to content

Commit

Permalink
fix has_update function.
Browse files Browse the repository at this point in the history
  • Loading branch information
soymadip committed Sep 8, 2024
1 parent c8c70eb commit 35fe558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
3 changes: 2 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ has_update() {
local local_ver="$1"
local git_ver="$2"

# Convert versions to numbers by replacing dots with spaces local local_vcode=$(echo "$local_ver" | tr '.' ' ')
# Convert versions to numbers by replacing dots with spaces
local local_vcode=$(echo "$local_ver" | tr '.' ' ')
local git_vcode=$(echo "$git_ver" | tr '.' ' ')

# Compare versions (lexicograpgic comp)
Expand Down

0 comments on commit 35fe558

Please sign in to comment.