fix: shim should use v executable from $PATH (#4)

This commit is contained in:
Marc 2023-11-04 21:58:31 -04:00
parent def2dd8752
commit aa365131d1
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 4 additions and 3 deletions

View file

@ -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
View file

@ -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.