Skip to content

Commit b199bbe

Browse files
authored
fix: Grep version with version prefix (#8)
`install yarn@1` should match major version of the version. ``` [SKIP] mise_use node on localhost Running mise ls yarn | grep '\s1' on localhost yarn 1.22.22 ```
1 parent c9d4045 commit b199bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/serverkit/resources/mise_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def apply
1515

1616
# @note Override
1717
def check
18-
check_command(" mise ls #{name} | grep '#{version_or_latest}'")
18+
check_command("mise ls #{name} | grep '\\s#{version_or_latest}'")
1919
end
2020

2121
private

0 commit comments

Comments
 (0)