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
|
const DEFAULT_PERMISSION = 0775
|
||||||
|
|
||||||
func writeShim(shimPath string) error {
|
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 {
|
if err := os.WriteFile(shimPath, shimContent, DEFAULT_PERMISSION); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
5
v.go
5
v.go
|
@ -5,8 +5,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "0.0.1"
|
Version = "0.0.2"
|
||||||
Author = "mcataford <hello@karnov.club>"
|
Author = "Marc Cataford <hello@karnov.club>"
|
||||||
|
Homepage = "https://github.com/mcataford/v"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Main entrypoint.
|
// Main entrypoint.
|
||||||
|
|
Loading…
Reference in a new issue