fix: shim should use v executable from $PATH (#4)
This commit is contained in:
parent
def2dd8752
commit
aa365131d1
2 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,7 @@ var SHIMS = []string{
|
|||
const DEFAULT_PERMISSION = 0775
|
||||
|
||||
func writeShim(shimPath string) error {
|
||||
shimContent := []byte("#!/bin/bash\n$(vm where) $@")
|
||||
shimContent := []byte("#!/bin/bash\n$(v where) $@")
|
||||
if err := os.WriteFile(shimPath, shimContent, DEFAULT_PERMISSION); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
5
v.go
5
v.go
|
@ -5,8 +5,9 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
Version = "0.0.1"
|
||||
Author = "mcataford <hello@karnov.club>"
|
||||
Version = "0.0.2"
|
||||
Author = "Marc Cataford <hello@karnov.club>"
|
||||
Homepage = "https://github.com/mcataford/v"
|
||||
)
|
||||
|
||||
// Main entrypoint.
|
||||
|
|
Loading…
Reference in a new issue